/* ------------------------------
   AQF Gallery Page - Template Style
-------------------------------- */

.aqf-gallery-page-hero {
    position: relative;
    min-height: 380px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background:
        radial-gradient(circle at 18% 22%, rgba(199, 106, 29, 0.18), transparent 30%),
        linear-gradient(135deg, var(--aqf-primary-dark), var(--aqf-primary));
}

.aqf-gallery-page-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 82% 28%, rgba(255, 255, 255, 0.08), transparent 32%);
    pointer-events: none;
}

.aqf-gallery-page-hero .aqf-container {
    position: relative;
    z-index: 2;
}

.aqf-gallery-page-hero__content {
    max-width: 820px;
    text-align: center;
    color: var(--aqf-white);
    margin: 0 auto;
    padding: 70px 0;
}

.aqf-gallery-page-hero__content span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--aqf-white);
    background: rgba(199, 106, 29, 0.24);
    border: 1px solid rgba(199, 106, 29, 0.42);
    border-radius: 999px;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 18px;
}

.aqf-gallery-page-hero__content h1 {
    color: var(--aqf-white);
    font-size: 54px;
    font-weight: 900;
    line-height: 1.18;
    margin: 0 0 14px;
}

.aqf-gallery-page-hero__content p {
    color: rgba(255, 255, 255, 0.86);
    font-size: 19px;
    font-weight: 600;
    line-height: 1.8;
    max-width: 760px;
    margin: 0 auto;
}


/* Page body */

.aqf-gallery-page {
    background: var(--aqf-bg);
    padding: 78px 0 94px;
    overflow: hidden;
}

.aqf-gallery-page__heading {
    max-width: 760px;
    text-align: center;
    margin: 0 auto 44px;
}

.aqf-gallery-page__heading h2 {
    color: var(--aqf-primary-dark);
    font-size: 42px;
    font-weight: 900;
    line-height: 1.28;
    margin: 0 0 14px;
}

.aqf-gallery-page__heading p {
    color: var(--aqf-muted);
    font-size: 16px;
    line-height: 1.9;
    margin: 0;
}


/* Template grid */

.aqf-gallery-template-grid {
    max-width: 1120px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: 135px;
    gap: 18px;
}

.aqf-gallery-template-card {
    position: relative;
    display: block;
    overflow: hidden;
    text-decoration: none;
    border-radius: 26px;
    background: var(--aqf-primary-dark);
    border: 1px solid rgba(3, 75, 99, 0.10);
    box-shadow: 0 18px 42px rgba(3, 75, 99, 0.12);
    transition: 0.25s ease;
}

.aqf-gallery-template-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 24px 52px rgba(3, 75, 99, 0.16);
}

.aqf-gallery-template-card--1 {
    grid-column: span 6;
    grid-row: span 3;
}

.aqf-gallery-template-card--2,
.aqf-gallery-template-card--3 {
    grid-column: span 3;
    grid-row: span 2;
}

.aqf-gallery-template-card--4 {
    grid-column: span 4;
    grid-row: span 2;
}

.aqf-gallery-template-card--5 {
    grid-column: span 4;
    grid-row: span 2;
}

.aqf-gallery-template-card--6 {
    grid-column: span 4;
    grid-row: span 2;
}

.aqf-gallery-template-card__media,
.aqf-gallery-template-card__media img,
.aqf-gallery-template-card__placeholder {
    width: 100%;
    height: 100%;
}

.aqf-gallery-template-card__media img {
    object-fit: cover;
    object-position: center center;
    display: block;
    transition: 0.38s ease;
}

.aqf-gallery-template-card:hover .aqf-gallery-template-card__media img {
    transform: scale(1.07);
}

.aqf-gallery-template-card__placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(circle at 18% 18%, rgba(199, 106, 29, 0.26), transparent 34%),
        radial-gradient(circle at 78% 72%, rgba(255, 255, 255, 0.08), transparent 32%),
        linear-gradient(135deg, var(--aqf-primary-dark), var(--aqf-primary));
}

.aqf-gallery-template-card:nth-child(2n) .aqf-gallery-template-card__placeholder {
    background:
        radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.10), transparent 32%),
        radial-gradient(circle at 80% 80%, rgba(199, 106, 29, 0.24), transparent 34%),
        linear-gradient(135deg, #0B3A48, var(--aqf-primary-dark));
}

.aqf-gallery-template-card:nth-child(3n) .aqf-gallery-template-card__placeholder {
    background:
        radial-gradient(circle at 22% 24%, rgba(199, 106, 29, 0.22), transparent 34%),
        linear-gradient(135deg, #073847, #07566F);
}

.aqf-gallery-template-card__placeholder i {
    color: rgba(255, 255, 255, 0.34);
    font-size: 58px;
}

.aqf-gallery-template-card__overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(6, 43, 58, 0.06) 0%, rgba(6, 43, 58, 0.34) 46%, rgba(6, 43, 58, 0.94) 100%);
    z-index: 1;
}

.aqf-gallery-template-card__content {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    padding: 26px;
    color: var(--aqf-white);
}

.aqf-gallery-template-card--2 .aqf-gallery-template-card__content,
.aqf-gallery-template-card--3 .aqf-gallery-template-card__content {
    padding: 20px;
}

.aqf-gallery-template-card__label {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--aqf-white);
    background: rgba(199, 106, 29, 0.78);
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 12px;
}

.aqf-gallery-template-card h3 {
    color: var(--aqf-white);
    font-size: 25px;
    font-weight: 900;
    line-height: 1.32;
    margin: 0 0 8px;
}

.aqf-gallery-template-card--2 h3,
.aqf-gallery-template-card--3 h3 {
    font-size: 19px;
}

.aqf-gallery-template-card p {
    color: rgba(255, 255, 255, 0.82);
    font-size: 14px;
    line-height: 1.7;
    margin: 0 0 14px;

    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.aqf-gallery-template-card strong {
    color: var(--aqf-white);
    font-size: 14px;
    font-weight: 900;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}


/* Responsive */

@media (max-width: 991px) {
    .aqf-gallery-page-hero {
        min-height: 330px;
    }

    .aqf-gallery-page-hero__content h1 {
        font-size: 42px;
    }

    .aqf-gallery-page {
        padding: 62px 0 74px;
    }

    .aqf-gallery-page__heading h2 {
        font-size: 34px;
    }

    .aqf-gallery-template-grid {
        grid-template-columns: repeat(6, 1fr);
        grid-auto-rows: 130px;
    }

    .aqf-gallery-template-card--1 {
        grid-column: span 6;
        grid-row: span 3;
    }

    .aqf-gallery-template-card--2,
    .aqf-gallery-template-card--3,
    .aqf-gallery-template-card--4,
    .aqf-gallery-template-card--5,
    .aqf-gallery-template-card--6 {
        grid-column: span 3;
        grid-row: span 2;
    }
}

@media (max-width: 575px) {
    .aqf-gallery-page-hero {
        min-height: 300px;
    }

    .aqf-gallery-page-hero__content {
        padding: 56px 0;
    }

    .aqf-gallery-page-hero__content h1 {
        font-size: 32px;
    }

    .aqf-gallery-page-hero__content p {
        font-size: 16px;
        line-height: 1.7;
    }

    .aqf-gallery-page {
        padding: 50px 0 60px;
    }

    .aqf-gallery-page__heading {
        margin-bottom: 28px;
    }

    .aqf-gallery-page__heading h2 {
        font-size: 28px;
    }

    .aqf-gallery-page__heading p {
        font-size: 15px;
    }

    .aqf-gallery-template-grid {
        display: grid;
        grid-template-columns: 1fr;
        grid-auto-rows: auto;
        gap: 16px;
    }

    .aqf-gallery-template-card,
    .aqf-gallery-template-card--1,
    .aqf-gallery-template-card--2,
    .aqf-gallery-template-card--3,
    .aqf-gallery-template-card--4,
    .aqf-gallery-template-card--5,
    .aqf-gallery-template-card--6 {
        grid-column: auto;
        grid-row: auto;
        min-height: 285px;
        border-radius: 20px;
    }

    .aqf-gallery-template-card__content,
    .aqf-gallery-template-card--2 .aqf-gallery-template-card__content,
    .aqf-gallery-template-card--3 .aqf-gallery-template-card__content {
        padding: 22px;
    }

    .aqf-gallery-template-card h3,
    .aqf-gallery-template-card--2 h3,
    .aqf-gallery-template-card--3 h3 {
        font-size: 22px;
    }
}