﻿.gallery-wrapper {
}
.album-detail-view .album-detail-container {
    display: flex;
    flex-direction: column;
    gap: var(--gap-3xl);
}
.gallery-grid {
    display: flex;
    flex-wrap: wrap;
    gap: var(--gap-xl);
    /*max-width: 1024px;*/
}

.gallery-heading {
    /*margin-top: var(--gap-3xl, 64px);*/
  /*  margin-bottom: var(--gap-3xl, 64px);*/
    text-align: center;
}

.gallery-card {
    flex: 1 1 calc(50% - var(--gap-xl));
    background: white;
    border-radius: 10px;
    /*box-shadow: 5px 5px 6px rgba(0,0,0,0.8);*/
    overflow: hidden;
    /*display: flex;*/
    flex-direction: column;
    height: 301px;
    max-width: 50%;
    margin: 0 auto;
}

    .gallery-card img {
        width: 100%;
        height: 100%;
        display: block;
        object-fit: cover;
    }

.card-content {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.card-date {
    font-weight: 400;
    font-size: var(--font-caption);
    line-height: var(--line-height-caption);
    color: #666;
    font-family: Dubai;
}

.card-title {
    font-size: 18px;
    font-weight: 500;
    color: #000;
    font-family: Dubai;
}

/* Every 3rd card spans full width */
.gallery-card:nth-child(3n) {
    flex: 1 1 100%;
    max-width: 100%;
}

/* Responsive override */
@media (max-width: 767px) {
    .gallery-card {
        /* flex: 1 1 100%;*/
        height: 246px;
    }
}

.card-content {
    display: none;
}
