/* =========================================================
   GALERİ SAYFASI CSS  (assets/galeri.css)
   .phm-container, .phm-page-banner, breadcrumb ve başlık stilleri
   kurumsal.css'ten gelir; burada yalnızca galeriye özel kurallar var.
   ========================================================= */

.phm-gal-section {
    background-color: #F8FAFC;
}

/* ---------- Filtre sekmeleri ---------- */
.phm-gal-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin: 0 0 38px;
}

.phm-gal-tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 50px;
    border: 1px solid #E2E8F0;
    background: #FFFFFF;
    color: #334155;
    font-family: inherit;
    font-size: 0.92rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s ease;
}

.phm-gal-tab i { color: #FF6B00; transition: color 0.25s ease; }

.phm-gal-tab span {
    min-width: 24px;
    padding: 1px 8px;
    border-radius: 20px;
    background: #F1F5F9;
    color: #475569;
    font-size: 0.76rem;
    text-align: center;
}

.phm-gal-tab:hover { border-color: #0A2B5E; color: #0A2B5E; }

.phm-gal-tab.active {
    background: #0A2B5E;
    border-color: #0A2B5E;
    color: #FFFFFF;
    box-shadow: 0 8px 20px rgba(10, 43, 94, 0.18);
}

.phm-gal-tab.active i { color: #FF6B00; }
.phm-gal-tab.active span { background: rgba(255, 255, 255, 0.18); color: #FFFFFF; }

/* ---------- Izgara ---------- */
.phm-gal-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
}

.phm-gal-card {
    display: flex;
    flex-direction: column;
    padding: 0;
    text-align: left;
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 18px;
    overflow: hidden;
    cursor: pointer;
    font-family: inherit;
    color: inherit;
    box-shadow: 0 10px 30px rgba(10, 43, 94, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.phm-gal-card[hidden] { display: none; }

.phm-gal-card:hover,
.phm-gal-card:focus-visible {
    transform: translateY(-6px);
    border-color: #FF6B00;
    box-shadow: 0 20px 40px rgba(10, 43, 94, 0.12);
    outline: none;
}

.phm-gal-thumb {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #E2E8F0;
}

.phm-gal-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.phm-gal-card:hover .phm-gal-thumb img { transform: scale(1.06); }

/* Fotoğraflar kırpılmadan, çerçeveye tam sığar */
.phm-gal-card[data-tur="resim"] .phm-gal-thumb { background: #F1F5F9; }
.phm-gal-card[data-tur="resim"] .phm-gal-thumb img { object-fit: contain; }
.phm-gal-card[data-tur="resim"]:hover .phm-gal-thumb img { transform: scale(1.03); }

/* Instagram yedek kutusu (kapak görseli yoksa) */
.phm-gal-ig-ph {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: #FFFFFF;
    font-size: 3.2rem;
    background: linear-gradient(135deg, #f58529, #dd2a7b 55%, #8134af);
}

/* Oynat butonu */
.phm-gal-play {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 64px;
    height: 64px;
    margin: -32px 0 0 -32px;
    border-radius: 50%;
    background: rgba(255, 107, 0, 0.92);
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    padding-left: 4px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.phm-gal-card:hover .phm-gal-play { transform: scale(1.12); }

/* Büyüteç (resimler) */
.phm-gal-zoom {
    position: absolute;
    right: 14px;
    bottom: 14px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(10, 43, 94, 0.85);
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    opacity: 0;
    transform: translateY(8px);
    transition: all 0.3s ease;
}

.phm-gal-card:hover .phm-gal-zoom,
.phm-gal-card:focus-visible .phm-gal-zoom {
    opacity: 1;
    transform: none;
}

/* Tür etiketi */
.phm-gal-type {
    position: absolute;
    top: 14px;
    left: 14px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 50px;
    color: #FFFFFF;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.3px;
}

.phm-gal-type.youtube   { background: #B91C1C; }
.phm-gal-type.instagram { background: linear-gradient(135deg, #dd2a7b, #8134af); }

/* Kart bilgisi */
.phm-gal-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 18px 20px 22px;
}

.phm-gal-title {
    color: #0A2B5E;
    font-size: 1.05rem;
    font-weight: 800;
    line-height: 1.4;
}

.phm-gal-desc {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: #64748B;
    font-size: 0.9rem;
    line-height: 1.55;
}

/* ---------- Boş durum ---------- */
.phm-gal-empty {
    max-width: 520px;
    margin: 20px auto;
    padding: 50px 30px;
    text-align: center;
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(10, 43, 94, 0.05);
}

.phm-gal-empty > i { font-size: 3rem; color: #FF6B00; margin-bottom: 14px; display: block; }
.phm-gal-empty h2 { color: #0A2B5E; font-size: 1.5rem; margin: 0 0 8px; }
.phm-gal-empty p { color: #64748B; margin: 0 0 22px; line-height: 1.6; }

.phm-gal-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 24px;
    border-radius: 50px;
    background: #0A2B5E;
    color: #FFFFFF;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.25s ease;
}

.phm-gal-back:hover { background: #FF6B00; }

/* ---------- Lightbox ---------- */
.phm-gal-lightbox {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(6, 26, 58, 0.94);
    padding: 20px;
}

.phm-gal-lightbox[hidden] { display: none; }

.phm-gal-lb-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 1000px;
    max-height: 100%;
}

.phm-gal-lb-stage {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.phm-gal-lb-img {
    display: block;
    max-width: 100%;
    max-height: 72vh;
    width: auto;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.phm-gal-lb-video {
    position: relative;
    width: 100%;
    max-width: 900px;
    aspect-ratio: 16 / 9;
    border-radius: 12px;
    overflow: hidden;
    background: #000;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.phm-gal-lb-reel {
    width: 100%;
    max-width: 380px;
    height: min(72vh, 660px);
    border-radius: 12px;
    overflow: hidden;
    background: #FFFFFF;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.phm-gal-lb-iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

.phm-gal-lb-caption {
    margin-top: 18px;
    text-align: center;
    color: #E2E8F0;
    max-width: 720px;
}

.phm-gal-lb-caption strong {
    display: block;
    color: #FFFFFF;
    font-size: 1.15rem;
    font-weight: 800;
}

.phm-gal-lb-caption p {
    margin: 6px 0 0;
    font-size: 0.93rem;
    line-height: 1.6;
    color: #CBD5E1;
}

.phm-gal-lb-caption p[hidden] { display: none; }

.phm-gal-lb-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    padding: 8px 18px;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #FFFFFF;
    font-size: 0.86rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.25s ease;
}

.phm-gal-lb-link[hidden] { display: none; }
.phm-gal-lb-link:hover { background: #FF6B00; border-color: #FF6B00; }

.phm-gal-lb-close,
.phm-gal-lb-nav {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.1);
    color: #FFFFFF;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.25s ease;
    z-index: 2;
}

.phm-gal-lb-close:hover,
.phm-gal-lb-nav:hover { background: #FF6B00; border-color: #FF6B00; }

.phm-gal-lb-nav[hidden] { display: none; }

.phm-gal-lb-close { top: 18px; right: 18px; }
.phm-gal-lb-nav { top: 50%; margin-top: -23px; }
.phm-gal-lb-nav.prev { left: 18px; }
.phm-gal-lb-nav.next { right: 18px; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
    .phm-gal-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
}

@media (max-width: 640px) {
    .phm-gal-grid { grid-template-columns: 1fr; gap: 18px; }
    .phm-gal-tabs { gap: 8px; margin-bottom: 28px; }
    .phm-gal-tab { padding: 8px 14px; font-size: 0.85rem; }

    .phm-gal-lightbox { padding: 12px; }
    .phm-gal-lb-close { top: 10px; right: 10px; width: 40px; height: 40px; }
    .phm-gal-lb-nav { width: 40px; height: 40px; top: auto; bottom: 14px; margin-top: 0; }
    .phm-gal-lb-nav.prev { left: 14px; }
    .phm-gal-lb-nav.next { right: 14px; }
    .phm-gal-lb-img { max-height: 62vh; }
    .phm-gal-lb-reel { height: min(66vh, 600px); }
    .phm-gal-lb-caption { margin-bottom: 56px; }
}

@media (prefers-reduced-motion: reduce) {
    .phm-gal-card, .phm-gal-thumb img, .phm-gal-play, .phm-gal-zoom { transition: none; }
}