/* ==========================================
   Aria Apart Otel - Galeri sayfası
   ========================================== */
.gl-hero {
    padding-bottom: clamp(4.5rem, 8vw, 6rem);
}

.gl-main {
    padding-bottom: clamp(3rem, 6vw, 5rem);
}

/* Kategori filtresi */
.gl-filters {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: -2.5rem 0 1.75rem;
    padding: 10px;
    width: fit-content;
    max-width: 100%;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 20px 50px rgba(14, 26, 43, 0.15);
}

.gl-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: var(--color-navy);
    font: inherit;
    font-size: 0.9375rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.gl-chip span {
    display: inline-grid;
    place-items: center;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 999px;
    background: var(--color-cream);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-gray);
}

.gl-chip:hover {
    background: var(--color-cream);
}

.gl-chip.is-active {
    background: var(--color-navy);
    color: #fff;
}

.gl-chip.is-active span {
    background: var(--color-gold);
    color: #1a1305;
}

.gl-chip:focus-visible {
    outline: 2px solid var(--color-gold);
    outline-offset: 2px;
}

/* Fotoğraf ızgarası */
.gl-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-rows: 230px;
    grid-auto-flow: dense;
    gap: 14px;
}

.gl-item {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--color-cream-dark);
    cursor: zoom-in;
    box-shadow: var(--shadow-soft);
    animation: glIn 0.4s ease both;
}

.gl-item.is-wide {
    grid-column: span 2;
}

.gl-item.is-tall {
    grid-row: span 2;
}

.gl-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}

.gl-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(14, 26, 43, 0.6), rgba(14, 26, 43, 0) 50%);
    opacity: 0.85;
    transition: opacity 0.3s ease;
}

.gl-item:hover img {
    transform: scale(1.05);
}

.gl-caption {
    position: absolute;
    left: 14px;
    bottom: 12px;
    z-index: 1;
    color: #fff;
    font-size: 0.875rem;
    font-weight: 500;
    text-align: left;
}

.gl-zoom {
    position: absolute;
    right: 12px;
    top: 12px;
    z-index: 1;
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    color: #fff;
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.gl-item:hover .gl-zoom,
.gl-item:focus-visible .gl-zoom {
    opacity: 1;
    transform: scale(1);
}

.gl-item:focus-visible {
    outline: 3px solid var(--color-gold);
    outline-offset: 2px;
}

@keyframes glIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

/* Çağrı alanı */
.gl-cta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px 32px;
    margin-top: 2.5rem;
    padding: clamp(1.5rem, 3vw, 2.25rem) clamp(1.5rem, 4vw, 3rem);
    border-radius: var(--radius-xl);
    background:
        radial-gradient(circle at 90% 0%, rgba(227, 196, 106, 0.3), rgba(227, 196, 106, 0) 55%),
        linear-gradient(135deg, var(--color-navy), #23365a);
    color: #fff;
}

.gl-cta h2 {
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 3vw, 2rem);
    color: #fff;
    margin-bottom: 0.35rem;
}

.gl-cta p {
    color: rgba(255, 255, 255, 0.72);
}

.gl-cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* Tam ekran görüntüleyici */
.gl-viewer {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: grid;
    grid-template-rows: auto 1fr auto;
    grid-template-columns: 72px 1fr 72px;
    background: rgba(8, 13, 24, 0.96);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    color: #fff;
}

.gl-viewer[hidden] {
    display: none;
}

.gl-viewer-top {
    grid-column: 1 / -1;
    grid-row: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.75);
}

.gl-icon-btn {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background 0.2s ease;
}

.gl-icon-btn:hover {
    background: var(--color-gold);
    color: #1a1305;
}

.gl-icon-btn:focus-visible {
    outline: 2px solid var(--color-gold);
    outline-offset: 2px;
}

.gl-nav {
    grid-row: 2;
    align-self: center;
    justify-self: center;
}

.gl-prev {
    grid-column: 1;
}

.gl-next {
    grid-column: 3;
}

.gl-stage {
    grid-column: 2;
    grid-row: 2;
    margin: 0;
    min-height: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 0 8px;
}

.gl-stage img {
    max-width: 100%;
    max-height: calc(100vh - 230px);
    border-radius: 14px;
    object-fit: contain;
    opacity: 0;
    transform: scale(0.98);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.gl-stage img.is-in {
    opacity: 1;
    transform: none;
}

.gl-stage figcaption {
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.85);
}

.gl-thumbs {
    grid-column: 1 / -1;
    grid-row: 3;
    display: flex;
    gap: 8px;
    padding: 12px 18px 18px;
    overflow-x: auto;
    justify-content: safe center;
    scrollbar-width: none;
}

.gl-thumbs::-webkit-scrollbar {
    display: none;
}

.gl-thumb {
    flex: 0 0 auto;
    width: 76px;
    height: 54px;
    padding: 0;
    border: 2px solid transparent;
    border-radius: 10px;
    overflow: hidden;
    background: none;
    opacity: 0.5;
    cursor: pointer;
    transition: opacity 0.2s ease, border-color 0.2s ease;
}

.gl-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gl-thumb:hover,
.gl-thumb.is-active {
    opacity: 1;
}

.gl-thumb.is-active {
    border-color: var(--color-gold);
}

@media (max-width: 1024px) {
    .gl-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        grid-auto-rows: 200px;
    }
}

@media (max-width: 768px) {
    .gl-filters {
        flex-wrap: nowrap;
        overflow-x: auto;
        width: 100%;
        scrollbar-width: none;
    }

    .gl-filters::-webkit-scrollbar {
        display: none;
    }

    .gl-chip {
        flex: 0 0 auto;
        padding: 8px 12px;
        font-size: 0.875rem;
    }

    .gl-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-auto-rows: 150px;
        gap: 10px;
    }

    .gl-caption {
        left: 10px;
        bottom: 8px;
        font-size: 0.75rem;
    }

    .gl-zoom {
        display: none;
    }

    .gl-viewer {
        grid-template-columns: 0 1fr 0;
    }

    .gl-nav {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        width: 40px;
        height: 40px;
    }

    .gl-prev {
        left: 8px;
    }

    .gl-next {
        right: 8px;
    }

    .gl-stage img {
        max-height: calc(100vh - 200px);
        border-radius: 8px;
    }
}
