/* Bookim — Foto Galeri (yalnızca UI) */

.photo-gallery-page {
    --pg-theme: var(--theme, #ff7b6b);
    --pg-theme-strong: #ff3b3b;
    --pg-header: var(--header, #11112c);
    --pg-text: var(--text, #797979);
    --pg-border: #eef0f5;
    --pg-shadow: 0 8px 28px rgba(17, 24, 39, 0.08);
    --pg-paper: #fff;
    background: linear-gradient(180deg, #fffdf9 0%, #fff 30%, #f8fafc 100%);
    overflow: hidden;
}

.photo-gallery-page__bg-dots {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.3;
    background-image: radial-gradient(circle at 1px 1px, rgba(17, 17, 44, 0.06) 1px, transparent 0);
    background-size: 26px 26px;
}

.photo-gallery-page__bg-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
    pointer-events: none;
    opacity: 0.45;
}

.photo-gallery-page__bg-blob--1 {
    width: 280px;
    height: 280px;
    top: 10%;
    right: -40px;
    background: rgba(255, 200, 120, 0.25);
}

.photo-gallery-page__bg-blob--2 {
    width: 240px;
    height: 240px;
    left: -30px;
    bottom: 20%;
    background: rgba(147, 197, 253, 0.2);
}

/* Hero */

.photo-gallery-hero {
    position: relative;
    padding: 3.25rem 0 2.25rem;
}

.photo-gallery-hero__blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(64px);
    pointer-events: none;
    opacity: 0.5;
}

.photo-gallery-hero__blob--1 {
    width: 300px;
    height: 300px;
    top: -70px;
    left: -50px;
    background: linear-gradient(135deg, rgba(255, 123, 107, 0.2), rgba(255, 239, 220, 0.18));
}

.photo-gallery-hero__blob--2 {
    width: 260px;
    height: 260px;
    top: 30px;
    right: 5%;
    background: linear-gradient(135deg, rgba(139, 124, 246, 0.12), rgba(74, 222, 128, 0.1));
}

.photo-gallery-hero__inner {
    position: relative;
    z-index: 1;
}

.photo-gallery-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.85rem;
    border-radius: 100px;
    background: rgba(255, 123, 107, 0.11);
    color: var(--pg-theme-strong);
    font-size: 0.8125rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.photo-gallery-hero__title {
    font-size: clamp(1.9rem, 4.2vw, 3rem);
    font-weight: 800;
    color: var(--pg-header);
    line-height: 1.15;
    margin-bottom: 0.85rem;
}

.photo-gallery-hero__title::after {
    content: "";
    display: block;
    width: 76px;
    height: 4px;
    margin-top: 0.85rem;
    border-radius: 4px;
    background: linear-gradient(90deg, var(--pg-theme-strong), var(--pg-theme));
}

.photo-gallery-hero__lead {
    font-size: 1.02rem;
    line-height: 1.7;
    color: var(--pg-text);
    max-width: 34rem;
    margin: 0;
}

/* Hero illüstrasyon — polaroid yığını */

.photo-gallery-illustration {
    position: relative;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.photo-gallery-illustration__stage {
    position: relative;
    width: min(100%, 340px);
    height: 260px;
}

.photo-gallery-illustration__polaroid {
    position: absolute;
    background: var(--pg-paper);
    border: 1px solid var(--pg-border);
    border-radius: 4px;
    box-shadow: var(--pg-shadow);
    padding: 10px 10px 32px;
}

.photo-gallery-illustration__polaroid--back1 {
    width: 140px;
    height: 168px;
    left: 12%;
    top: 18%;
    transform: rotate(-14deg);
    background: linear-gradient(145deg, #fff 0%, #fef3c7 100%);
    z-index: 1;
}

.photo-gallery-illustration__polaroid--back2 {
    width: 150px;
    height: 178px;
    right: 10%;
    top: 8%;
    transform: rotate(10deg);
    background: linear-gradient(145deg, #fff 0%, #dbeafe 100%);
    z-index: 2;
}

.photo-gallery-illustration__polaroid--front {
    width: 168px;
    height: 196px;
    left: 50%;
    top: 28%;
    transform: translateX(-50%) rotate(-3deg);
    z-index: 3;
}

.photo-gallery-illustration__photo {
    display: block;
    width: 100%;
    aspect-ratio: 1;
    border-radius: 2px;
    background: linear-gradient(135deg, #fecaca 0%, #fda4af 45%, #f9a8d4 100%);
}

.photo-gallery-illustration__tape {
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%) rotate(-2deg);
    width: 52px;
    height: 16px;
    background: rgba(253, 224, 71, 0.55);
    border: 1px solid rgba(250, 204, 21, 0.35);
    z-index: 4;
}

.photo-gallery-illustration__camera {
    position: absolute;
    right: 0;
    bottom: 8%;
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: var(--pg-header);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    box-shadow: var(--pg-shadow);
    z-index: 5;
}

.photo-gallery-illustration__bubble {
    position: absolute;
    top: 0;
    left: 0;
    padding: 0.5rem 0.8rem;
    border-radius: 12px;
    background: #fff;
    border: 1px solid var(--pg-border);
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--pg-header);
    box-shadow: var(--pg-shadow);
    z-index: 6;
}

/* Bölüm başlığı */

.photo-gallery-section-head {
    margin-bottom: 1.75rem;
}

.photo-gallery-section-head h2 {
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    font-weight: 800;
    color: var(--pg-header);
    margin-bottom: 0.35rem;
}

.photo-gallery-section-head p {
    color: var(--pg-text);
    margin: 0;
    font-size: 0.9375rem;
}

/* Öne çıkan galeri */

.photo-gallery-featured {
    margin-bottom: 2.75rem;
}

.photo-gallery-featured__card {
    display: grid;
    grid-template-columns: 1.25fr 1fr;
    gap: 1.75rem;
    align-items: center;
    background: var(--pg-paper);
    border: 1px solid var(--pg-border);
    border-radius: 26px;
    padding: 1.35rem;
    box-shadow: var(--pg-shadow);
}

.photo-gallery-featured__visual {
    position: relative;
    min-height: 0;
}

.photo-gallery-polaroid-stack {
    position: relative;
    padding: 12px 16px 20px;
}

.photo-gallery-polaroid-stack::before,
.photo-gallery-polaroid-stack::after {
    content: "";
    position: absolute;
    background: var(--pg-paper);
    border: 1px solid var(--pg-border);
    border-radius: 6px;
    box-shadow: 0 6px 18px rgba(17, 24, 39, 0.06);
    z-index: 0;
}

.photo-gallery-polaroid-stack::before {
    inset: 6px 22px 14px 8px;
    transform: rotate(-5deg);
    background: linear-gradient(145deg, #fff, #fef9c3);
}

.photo-gallery-polaroid-stack::after {
    inset: 10px 10px 18px 24px;
    transform: rotate(4deg);
    background: linear-gradient(145deg, #fff, #e0e7ff);
}

.photo-gallery-polaroid {
    position: relative;
    z-index: 1;
    background: var(--pg-paper);
    border: 1px solid var(--pg-border);
    border-radius: 6px;
    padding: 10px 10px 14px;
    box-shadow: 0 12px 32px rgba(17, 24, 39, 0.1);
    transform: rotate(-1.5deg);
}

.photo-gallery-polaroid__media {
    position: relative;
    border-radius: 4px;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
}

.photo-gallery-polaroid__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.photo-gallery-polaroid__tape {
    position: absolute;
    top: -7px;
    left: 18%;
    width: 56px;
    height: 18px;
    background: rgba(253, 224, 71, 0.6);
    border: 1px solid rgba(250, 204, 21, 0.3);
    transform: rotate(-4deg);
    z-index: 2;
    pointer-events: none;
}

.photo-gallery-featured__overlay {
    position: absolute;
    inset: 10px 10px 14px;
    border-radius: 4px;
    background: linear-gradient(180deg, transparent 35%, rgba(17, 24, 39, 0.72) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1rem;
    pointer-events: none;
    z-index: 2;
}

.photo-gallery-featured__overlay-title {
    color: #fff;
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.3;
    margin: 0;
}

.photo-gallery-featured__body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.photo-gallery-featured__label {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--pg-theme-strong);
    margin-bottom: 0.65rem;
}

.photo-gallery-featured__title {
    font-size: clamp(1.35rem, 2.2vw, 1.85rem);
    font-weight: 800;
    color: var(--pg-header);
    line-height: 1.28;
    margin-bottom: 0.65rem;
}

.photo-gallery-featured__desc {
    font-size: 0.9375rem;
    line-height: 1.65;
    color: var(--pg-text);
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.photo-gallery-count-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.3rem 0.65rem;
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.92);
    color: var(--pg-header);
    margin-bottom: 0.5rem;
    width: fit-content;
}

.photo-gallery-count-badge--card {
    position: absolute;
    top: 0.7rem;
    right: 0.7rem;
    z-index: 3;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid var(--pg-border);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.photo-gallery-count-badge--accent {
    background: color-mix(in srgb, var(--pg-accent, var(--pg-theme)) 12%, #fff);
    color: var(--pg-accent, var(--pg-theme));
    border: 1px solid color-mix(in srgb, var(--pg-accent, var(--pg-theme)) 25%, var(--pg-border));
    margin-bottom: 0.85rem;
}

/* Galeri grid kartları */

.photo-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
}

.photo-gallery-card {
    --pg-accent: #ff7b6b;
    display: flex;
    flex-direction: column;
    background: var(--pg-paper);
    border: 1px solid var(--pg-border);
    border-radius: 22px;
    overflow: visible;
    box-shadow: var(--pg-shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    animation: photoGalleryFadeUp 0.48s ease both;
    position: relative;
}

.photo-gallery-card::before,
.photo-gallery-card::after {
    content: "";
    position: absolute;
    background: var(--pg-paper);
    border: 1px solid var(--pg-border);
    border-radius: 18px;
    z-index: -1;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.photo-gallery-card::before {
    inset: 4px 10px -6px 6px;
    transform: rotate(-3deg);
    opacity: 0.55;
}

.photo-gallery-card::after {
    inset: 8px 6px -4px 12px;
    transform: rotate(2.5deg);
    opacity: 0.4;
}

.photo-gallery-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(17, 24, 39, 0.12);
}

.photo-gallery-card:hover::before {
    transform: rotate(-5deg) translateY(-2px);
    opacity: 0.75;
}

.photo-gallery-card:hover::after {
    transform: rotate(4deg) translateY(-2px);
    opacity: 0.6;
}

.photo-gallery-card__visual {
    padding: 1rem 1rem 0;
    position: relative;
}

.photo-gallery-card__polaroid {
    background: var(--pg-paper);
    border: 1px solid var(--pg-border);
    border-radius: 6px;
    padding: 8px 8px 22px;
    box-shadow: 0 8px 20px rgba(17, 24, 39, 0.08);
    transform: rotate(-1deg);
    transition: transform 0.2s ease;
}

.photo-gallery-card:hover .photo-gallery-card__polaroid {
    transform: rotate(0deg);
}

.photo-gallery-card__media {
    display: block;
    position: relative;
    border-radius: 4px;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    background: linear-gradient(135deg, #f8fafc, #e2e8f0);
    text-decoration: none;
    color: inherit;
}

.photo-gallery-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.photo-gallery-card__ribbon {
    position: absolute;
    top: 10px;
    left: -4px;
    z-index: 2;
    font-size: 0.625rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.2rem 0.5rem;
    background: var(--pg-accent);
    color: #fff;
    border-radius: 0 4px 4px 0;
    box-shadow: 0 2px 8px color-mix(in srgb, var(--pg-accent) 35%, transparent);
}

.photo-gallery-card__body {
    padding: 0.95rem 1.1rem 1.15rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.photo-gallery-card__title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--pg-header);
    line-height: 1.35;
    margin: 0 0 0.4rem;
}

.photo-gallery-card__title a {
    color: inherit;
    text-decoration: none;
}

.photo-gallery-card__title a:hover {
    color: var(--pg-accent);
}

.photo-gallery-card__desc {
    font-size: 0.84rem;
    line-height: 1.55;
    color: var(--pg-text);
    margin: 0 0 0.85rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.photo-gallery-card__action {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    align-self: flex-start;
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--pg-accent);
    text-decoration: none;
    transition: gap 0.18s ease;
}

.photo-gallery-card__action:hover {
    gap: 0.55rem;
    color: var(--pg-header);
}

/* Placeholder */

.photo-gallery-placeholder {
    width: 100%;
    height: 100%;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    text-align: center;
    padding: 1rem;
    background: linear-gradient(145deg, #f8fafc 0%, #eef2ff 55%, #fef3c7 100%);
    color: #64748b;
}

.photo-gallery-polaroid__media .photo-gallery-placeholder,
.photo-gallery-card__media .photo-gallery-placeholder,
.photo-gallery-photo__link .photo-gallery-placeholder {
    min-height: 0;
}

.photo-gallery-placeholder__icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.85);
    color: var(--pg-theme);
    font-size: 1.15rem;
    border: 1px solid var(--pg-border);
}

.photo-gallery-placeholder__text {
    font-size: 0.75rem;
    font-weight: 600;
    color: #94a3b8;
    margin: 0;
}

/* Boş durum */

.photo-gallery-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3.5rem 1.5rem;
    border-radius: 24px;
    background: var(--pg-paper);
    border: 1px dashed var(--pg-border);
    box-shadow: var(--pg-shadow);
}

.photo-gallery-empty__icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 1rem;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 123, 107, 0.1);
    color: var(--pg-theme);
    font-size: 1.75rem;
    border: 1px solid var(--pg-border);
}

.photo-gallery-empty__title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--pg-header);
    margin-bottom: 0.35rem;
}

.photo-gallery-empty__text {
    font-size: 0.9375rem;
    color: var(--pg-text);
    margin: 0;
}

/* Detay sayfası — foto grid */

.photo-gallery-detail-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.35rem;
}

.photo-gallery-photo {
    position: relative;
}

.photo-gallery-photo__polaroid {
    background: var(--pg-paper);
    border: 1px solid var(--pg-border);
    border-radius: 6px;
    padding: 8px 8px 24px;
    box-shadow: 0 8px 22px rgba(17, 24, 39, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.photo-gallery-photo:hover .photo-gallery-photo__polaroid {
    transform: translateY(-4px) rotate(-1deg);
    box-shadow: 0 14px 30px rgba(17, 24, 39, 0.12);
}

.photo-gallery-photo__link {
    display: block;
    border-radius: 4px;
    overflow: hidden;
    aspect-ratio: 1;
    background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
}

.photo-gallery-photo__link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

@keyframes photoGalleryFadeUp {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 991.98px) {
    .photo-gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .photo-gallery-featured__card {
        grid-template-columns: 1fr;
    }

    .photo-gallery-detail-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .photo-gallery-illustration {
        margin-top: 1.5rem;
        min-height: 260px;
    }
}

@media (max-width: 767.98px) {
    .photo-gallery-grid {
        grid-template-columns: 1fr;
    }

    .photo-gallery-detail-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .photo-gallery-hero {
        padding-top: 2.25rem;
    }

    .photo-gallery-card::before,
    .photo-gallery-card::after {
        display: none;
    }

    .photo-gallery-polaroid-stack::before,
    .photo-gallery-polaroid-stack::after {
        display: none;
    }
}

@media (max-width: 479.98px) {
    .photo-gallery-detail-grid {
        grid-template-columns: 1fr;
    }
}
