/* =========================================================
   AKEELA DENTAL CARE — GALLERY PAGE
========================================================= */

:root {
    --ak-green: #009DA5;
    --ak-green-dark: #007F86;
    --ak-orange: #F3754B;
    --ak-ink: #173B3D;
    --ak-text: #496466;
    --ak-muted: #789092;
    --ak-line: #DCEBEC;
    --ak-white: #FFFFFF;
    --ak-offwhite: #F7FAFA;
}

* { box-sizing: border-box; }

.ak-gal-page { background: var(--ak-white); color: var(--ak-ink); font-family: "DM Sans", "Manrope", sans-serif; overflow-x: hidden; }
.ak-gal-page img { max-width: 100%; display: block; }
.ak-gal-page a { text-decoration: none; color: inherit; }

.akp-container { width: min(1240px, calc(100% - 80px)); margin: 0 auto; }

/* =====================================================
   HERO
===================================================== */

.ak-gal-hero { position: relative; height: 56vh; min-height: 420px; overflow: hidden; background: #0b3032; }
.ak-gal-hero-image {
    position: absolute; inset: -20px;
    background-image: url("https://images.pexels.com/photos/3845810/pexels-photo-3845810.jpeg?auto=compress&cs=tinysrgb&w=2400");
    background-size: cover; background-position: center;
}
.ak-gal-hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(100deg, rgba(4,27,29,0.9) 0%, rgba(4,27,29,0.68) 45%, rgba(4,27,29,0.35) 100%);
}
.ak-gal-hero-inner { position: relative; z-index: 2; width: min(1180px, 90%); height: 100%; margin: 0 auto; display: flex; flex-direction: column; justify-content: center; }
.ak-gal-hero-top { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; color: rgba(255,255,255,0.72); font-size: 9px; font-weight: 700; letter-spacing: 3px; }
.ak-gal-hero-rule { width: 42px; height: 1px; background: var(--ak-orange); }
.ak-gal-hero-inner h1 {
    margin: 0; max-width: 700px; color: #fff; font-family: Georgia, serif;
    font-size: clamp(38px, 5.5vw, 66px); font-weight: 400; line-height: 1; letter-spacing: -1.5px;
}
.ak-gal-hero-inner h1 em { color: var(--ak-orange); font-style: italic; }
.ak-gal-hero-inner > p { max-width: 480px; margin: 22px 0 0; color: rgba(255,255,255,0.75); font-size: 14px; line-height: 1.8; }


/* =====================================================
   CASE CATEGORIES
===================================================== */

.ak-gal-cats { padding: 50px 0 110px; background: var(--ak-white); }
.ak-gal-intro { max-width: 720px; margin: 0 0 45px; color: var(--ak-text); font-size: 14px; line-height: 1.85; }
.ak-gal-footnote { max-width: 720px; margin: 50px 0 0; color: var(--ak-muted); font-size: 12px; line-height: 1.8; }
.ak-gal-footnote a { color: var(--ak-green); font-weight: 600; text-decoration: underline; }

.ak-gal-cat-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.ak-gal-cat-card {
    display: flex; flex-direction: column; overflow: hidden; border-radius: 16px;
    background: var(--ak-white); box-shadow: 0 18px 42px rgba(16,43,45,.1);
    transition: transform .4s cubic-bezier(.2,.8,.2,1), box-shadow .4s ease;
}
.ak-gal-cat-card:hover { transform: translateY(-8px); box-shadow: 0 32px 65px rgba(16,43,45,.18); }

.ak-gal-cat-image { position: relative; width: 100%; aspect-ratio: 16/10; overflow: hidden; }
.ak-gal-cat-image img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .8s cubic-bezier(.2,.8,.2,1); }
.ak-gal-cat-card:hover .ak-gal-cat-image img { transform: scale(1.08); }
.ak-gal-cat-image::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0,0,0,.32) 0%, transparent 45%); }

.ak-gal-cat-arrow {
    position: absolute; bottom: 16px; right: 16px; z-index: 2;
    display: flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%;
    background: rgba(255,255,255,.9); color: var(--ak-green); font-size: 15px;
    transition: transform .3s ease, background-color .3s ease, color .3s ease;
}
.ak-gal-cat-card:hover .ak-gal-cat-arrow { transform: translate(2px,-2px); background: var(--ak-orange); color: #fff; }

.ak-gal-cat-body { padding: 26px 28px 28px; }
.ak-gal-cat-num { display: block; margin-bottom: 10px; color: var(--ak-orange); font-family: Georgia, serif; font-size: 12px; }
.ak-gal-cat-body h3 { margin: 0; color: var(--ak-ink); font-family: Georgia, serif; font-size: 24px; font-weight: 400; line-height: 1.1; letter-spacing: -.02em; }
.ak-gal-cat-body h3 em { color: var(--ak-orange); font-style: italic; }
.ak-gal-cat-body p { margin: 10px 0 0; color: var(--ak-muted); font-size: 12.5px; line-height: 1.7; }

@media (max-width: 700px) {
    .ak-gal-cat-grid { grid-template-columns: 1fr; }
}


/* =====================================================
   FINAL CTA
===================================================== */

.ak-gal-final { position: relative; min-height: 420px; display: flex; align-items: center; justify-content: center; overflow: hidden; background: var(--ak-green-dark); color: #fff; }
.ak-gal-final-bg {
    position: absolute; inset: -20px;
    background-image: url("https://images.unsplash.com/photo-1629909613654-28e377c37b09?auto=format&fit=crop&w=2200&q=85");
    background-size: cover; background-position: center; animation: akGalZoom 18s ease-in-out infinite alternate;
}
@keyframes akGalZoom { from { transform: scale(1); } to { transform: scale(1.08); } }
.ak-gal-final-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,58,61,.93), rgba(0,58,61,.74)); }
.ak-gal-final-content { position: relative; z-index: 2; width: min(700px, calc(100% - 50px)); text-align: center; }
.ak-gal-final-content > span { display: block; margin-bottom: 16px; color: var(--ak-orange); font-size: 9px; font-weight: 700; letter-spacing: 3px; }
.ak-gal-final-content h2 { margin: 0; font-family: Georgia, serif; font-size: clamp(32px, 5vw, 48px); line-height: .98; font-weight: 400; }
.ak-gal-final-content h2 em { color: var(--ak-orange); font-style: italic; }
.ak-gal-final-content > p { max-width: 440px; margin: 20px auto 26px; color: rgba(255,255,255,.72); font-size: 13px; line-height: 1.8; }
.ak-gal-final-content > div { display: flex; justify-content: center; gap: 12px; }
.ak-gal-btn-primary, .ak-gal-btn-outline {
    display: inline-flex; align-items: center; gap: 12px; padding: 15px 22px; border-radius: 100px;
    font-size: 11px; font-weight: 700; letter-spacing: .8px; transition: transform .3s ease, background-color .3s ease, color .3s ease, box-shadow .3s ease;
}
.ak-gal-btn-primary { background: var(--ak-orange); color: #fff; }
.ak-gal-btn-primary:hover { background: #ff8a62; transform: translateY(-3px); box-shadow: 0 18px 35px rgba(243,117,75,.3); }
.ak-gal-btn-outline { border: 1px solid rgba(255,255,255,.35); color: #fff; }
.ak-gal-btn-outline:hover { background: #fff; color: var(--ak-green-dark); transform: translateY(-3px); }

@media (max-width: 600px) { .ak-gal-final-content > div { flex-direction: column; } }

/* =====================================================
   APPOINTMENT POPUP (reused pattern)
===================================================== */

.ak-svc-popup {
    position: fixed; right: 24px; bottom: 24px; z-index: 9999; width: 350px; max-width: calc(100vw - 32px);
    padding: 25px 25px 23px; background: rgba(255,255,255,.97); border: 1px solid var(--ak-line); border-radius: 22px;
    box-shadow: 0 25px 70px rgba(16,43,45,.2), 0 5px 20px rgba(16,43,45,.08); backdrop-filter: blur(18px);
    opacity: 0; visibility: hidden; transform: translateY(30px) scale(.96);
    transition: opacity .45s ease, visibility .45s ease, transform .45s cubic-bezier(.2,.8,.2,1);
}
.ak-svc-popup.ak-svc-popup-visible { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }
.ak-svc-popup-accent { position: absolute; top: 0; left: 24px; width: 42px; height: 3px; background: var(--ak-orange); border-radius: 0 0 5px 5px; }
.ak-svc-popup-close {
    position: absolute; top: 13px; right: 14px; width: 28px; height: 28px; border: 0; border-radius: 50%;
    background: var(--ak-offwhite); color: var(--ak-ink); font-size: 18px; line-height: 1; cursor: pointer;
    transition: transform .25s ease, background-color .25s ease, color .25s ease;
}
.ak-svc-popup-close:hover { transform: rotate(90deg); background: var(--ak-green); color: #fff; }
.ak-svc-popup-kicker { display: block; margin-bottom: 10px; font-size: 9px; font-weight: 800; letter-spacing: .17em; color: var(--ak-green); }
.ak-svc-popup h3 { margin: 0; font-family: Georgia, serif; font-size: 27px; font-weight: 400; line-height: 1.05; letter-spacing: -.5px; color: var(--ak-ink); }
.ak-svc-popup h3 em { font-style: italic; color: var(--ak-orange); }
.ak-svc-popup > p { margin: 11px 0 17px; font-size: 12px; line-height: 1.5; color: var(--ak-muted); }
.ak-svc-popup-actions { display: flex; gap: 8px; }
.ak-svc-popup-call, .ak-svc-popup-wa {
    min-height: 40px; display: inline-flex; align-items: center; justify-content: center; border-radius: 9px;
    font-size: 10px; font-weight: 800; letter-spacing: .04em; transition: transform .25s ease, background-color .25s ease, color .25s ease;
}
.ak-svc-popup-call { flex: 1; gap: 8px; background: var(--ak-green-dark); color: #fff; }
.ak-svc-popup-call:hover { transform: translateY(-2px); background: var(--ak-green); }
.ak-svc-popup-wa { padding: 0 15px; border: 1px solid var(--ak-line); color: var(--ak-ink); }
.ak-svc-popup-wa:hover { transform: translateY(-2px); background: var(--ak-offwhite); }

@media (max-width: 600px) {
    .ak-svc-popup { right: 12px; bottom: 12px; width: calc(100vw - 24px); padding: 21px; border-radius: 18px; }
    .ak-svc-popup h3 { font-size: 24px; }
}/* =====================================================
   LINK TO PATIENT PHOTOS PAGE
===================================================== */

.ak-gal-patients {
    display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
    margin-top: 24px; padding: 32px 36px; border-radius: 16px;
    background: linear-gradient(90deg, #003A3D 0%, #00565A 100%); color: #fff;
    box-shadow: 0 18px 42px rgba(16,43,45,.12);
    transition: transform .4s cubic-bezier(.2,.8,.2,1), box-shadow .4s ease;
}
.ak-gal-patients:hover { transform: translateY(-6px); box-shadow: 0 32px 65px rgba(16,43,45,.2); }
.ak-gal-patients-kicker { display: block; margin-bottom: 10px; color: var(--ak-orange); font-size: 9px; font-weight: 700; letter-spacing: 3px; }
.ak-gal-patients h3 { margin: 0; color: #fff; font-family: Georgia, serif; font-size: clamp(24px, 3vw, 32px); font-weight: 400; line-height: 1.1; letter-spacing: -.02em; }
.ak-gal-patients h3 em { color: var(--ak-orange); font-style: italic; }
.ak-gal-patients p { margin: 10px 0 0; color: rgba(255,255,255,.72); font-size: 13px; line-height: 1.7; }
.ak-gal-patients-btn {
    display: inline-flex; align-items: center; gap: 12px; padding: 15px 22px; border-radius: 100px;
    background: var(--ak-orange); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .8px; white-space: nowrap;
}