/*
Theme Name: Ophthalmos Medical Child
Description: Child theme για το fragkoulis-eye.gr — σελίδα Το Ιατρείο με διαχειρίσιμη masonry gallery.
Author: Production
Template: ophthalmos-theme
Version: 1.4.2
Text Domain: ophthalmos-child
*/
.ophc-clinic-copy{margin:0 auto 36px;color:var(--muted)}
.ophc-masonry{column-count:3;column-gap:22px}
.ophc-masonry-item{break-inside:avoid;page-break-inside:avoid;margin:0 0 22px;display:inline-block;width:100%;overflow:hidden;border:1px solid var(--line);border-radius:16px;background:#fff;box-shadow:0 7px 22px rgba(35,78,106,.06)}
.ophc-photo-link{display:block;background:var(--pale);cursor:zoom-in}
.ophc-photo-link img{display:block;width:100%;height:auto}
.ophc-masonry-item figcaption{padding:13px 16px;color:var(--muted);font-size:14px;line-height:1.5;overflow-wrap:anywhere}
.ophc-photo-link:focus-visible,.ophc-lightbox button:focus-visible,.menu-toggle:focus-visible{outline:3px solid var(--blue);outline-offset:-3px}
.ophc-lightbox{width:100%;max-width:none;height:100%;max-height:none;padding:24px;margin:0;border:0;background:transparent;color:#fff;overflow:auto}
.ophc-lightbox::backdrop{background:rgba(12,27,39,.93)}
.ophc-lightbox:not([open]){display:none}
.ophc-lightbox[open]{display:flex;align-items:center;justify-content:center}
.ophc-lightbox-panel{position:relative;max-width:1100px;width:100%;text-align:center;padding-top:48px}
.ophc-lightbox-image{display:block;width:auto;max-width:100%;height:auto;max-height:calc(100dvh - 220px);margin:auto;object-fit:contain;border-radius:12px}
.ophc-lightbox-caption{margin:14px 0;color:#fff;line-height:1.5}
.ophc-lightbox button{width:44px;height:44px;border:1px solid rgba(255,255,255,.4);border-radius:50%;background:rgba(255,255,255,.12);color:#fff;cursor:pointer;font-size:30px;line-height:1}
.ophc-lightbox button:hover{background:var(--blue)}
.ophc-lightbox-close{position:absolute;right:0;top:0}
.ophc-lightbox-controls{display:flex;align-items:center;justify-content:center;gap:18px}
.ophc-lightbox [hidden]{display:none!important}
.ophc-lightbox-counter{min-width:68px;font-size:14px;font-variant-numeric:tabular-nums}
@media(max-width:900px){.ophc-masonry{column-count:2;column-gap:18px}.ophc-masonry-item{margin-bottom:18px}}
@media(max-width:600px){.ophc-masonry{column-count:1}.ophc-masonry-item{border-radius:14px}.ophc-lightbox{padding:14px}.ophc-lightbox-caption{font-size:14px}}
.ophc-empty{padding:48px 28px;border:1px solid var(--line);border-radius:20px;background:var(--pale);text-align:center}.ophc-empty h2{margin:0 0 12px}.ophc-empty p{color:var(--muted)}
@media(min-width:1051px){.header-inner{gap:20px}.nav ul{gap:clamp(12px,1.8vw,26px)}.nav a{white-space:nowrap}}
@media(max-width:1050px){.header-inner{position:relative;gap:12px}.brand{min-width:0}.menu-toggle{display:block;flex-shrink:0;cursor:pointer}.nav{display:none;position:absolute;left:-20px;right:-20px;top:100%;background:#fff;border-bottom:1px solid var(--line);padding:18px 20px;max-height:calc(100dvh - 100px);overflow:auto}.nav.open{display:block}.nav ul{display:block}.nav li{padding:9px 0}}
@media(max-width:560px){.ophc-clinic{padding:38px 0}.nav{left:-14px;right:-14px}.brand-text strong{font-size:clamp(12px,3.6vw,18px);overflow-wrap:anywhere}.brand{gap:8px}.brand img{max-width:74px}.ophc-empty{padding:30px 20px}}

/* 1.1.2 — More compact doctor section on the homepage. */
.home .section:has(> .about-grid){padding:48px 0}
.home .about-grid{gap:40px}
.home .about-grid .about-image{min-width:0}
.home .about-grid .about-image img{display:block;width:100%;height:440px;object-fit:cover;object-position:50% 30%}
.home .about-grid .content h2{margin:12px 0 18px}
.home .about-grid .content p{margin:0 0 18px}
.home .about-grid .content .readmore{margin-top:0}
@media(max-width:850px){
 .home .section:has(> .about-grid){padding:38px 0}
 .home .about-grid{gap:26px}
 .home .about-grid .about-image{width:100%;max-width:480px;margin-inline:auto}
 .home .about-grid .about-image img{height:400px}
}
@media(max-width:560px){
 .home .section:has(> .about-grid){padding:30px 0}
 .home .about-grid{gap:22px}
 .home .about-grid .about-image img{height:360px}
 .home .about-grid .content h2{font-size:clamp(26px,6.5vw,34px);line-height:1.2}
}

/* 1.2.1 — Archive cards and accessible pagination. */
.ophc-archive-list .card{display:flex;flex-direction:column;min-width:0}
.ophc-archive-list .card .thumb{display:block;flex-shrink:0}
.ophc-archive-list .card h3{overflow-wrap:anywhere}
.ophc-archive-list .card .readmore{margin-top:auto;padding-top:18px;align-self:center}
.ophc-archive-pagination:has(.pagination){margin-top:36px}
.ophc-archive-pagination .nav-links{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:8px}
.ophc-archive-pagination .page-numbers{display:inline-flex;align-items:center;justify-content:center;min-width:44px;min-height:44px;padding:8px 14px;border:1px solid var(--line);border-radius:8px;background:#fff;color:var(--blue);font-weight:700}
.ophc-archive-pagination .page-numbers.current,.ophc-archive-pagination a.page-numbers:hover{background:var(--blue);border-color:var(--blue);color:#fff}
.ophc-archive-pagination .page-numbers.dots{border-color:transparent;background:transparent;color:var(--muted)}
.ophc-archive-pagination a:focus-visible{outline:3px solid var(--blue);outline-offset:3px}
.ophc-archive-pagination .screen-reader-text{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);clip-path:inset(50%);white-space:nowrap;border:0}
@media(max-width:560px){.ophc-archive-pagination .page-numbers{padding:8px 10px;font-size:14px}.ophc-archive-pagination:has(.pagination){margin-top:26px}}

/* 1.3.0 — Editable biography using the original visual language. */
.ophc-bio-hero .bio-hero-grid{grid-template-columns:minmax(0,.82fr) minmax(0,1.18fr)}
.ophc-bio-hero .bio-photo img{display:block;height:auto;min-height:0;max-height:560px;object-fit:cover}
.ophc-bio-hero .bio-intro{min-width:0;overflow-wrap:anywhere}
.ophc-bio-position{color:var(--muted);font-size:16px;line-height:1.65;margin:-8px 0 20px}
.ophc-bio-entry .bio-content>h2{font-size:clamp(24px,3vw,32px);line-height:1.3;margin:40px 0 22px;padding-top:30px;border-top:1px solid var(--line);color:var(--ink)}
.ophc-bio-entry .bio-content>h2:first-child{margin-top:0;padding-top:0;border-top:0}
.ophc-bio-entry .bio-content p,.ophc-bio-entry .bio-content li{color:#4f6574;line-height:1.85;overflow-wrap:anywhere}
.ophc-bio-entry .bio-content p{margin:0 0 18px}
.ophc-bio-entry .bio-content ul{padding-left:24px;margin:0 0 22px}
.ophc-bio-entry .bio-content li{padding-left:5px;margin-bottom:12px}
.ophc-bio-entry .bio-content li::marker{color:var(--blue)}
@media(max-width:850px){.ophc-bio-hero .bio-hero-grid{grid-template-columns:minmax(0,1fr)}.ophc-bio-hero .bio-photo{width:100%;margin-inline:auto}.ophc-bio-hero .bio-photo img{max-height:480px;object-position:50% 25%}}
@media(max-width:560px){.ophc-bio-hero .bio-intro h1{font-size:clamp(28px,8vw,34px)}.ophc-bio-hero .bio-photo img{max-height:400px}.ophc-bio-entry .bio-content>h2{margin-top:30px;padding-top:24px}.ophc-bio-position{font-size:15px}}

/* 1.4.0 — Cataract treatment text on the left, comparison image on the right. */
.entry-content .ophc-cataract-treatment{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);gap:32px;align-items:start;margin:26px 0 32px;clear:both}
.ophc-cataract-copy,.ophc-cataract-image{min-width:0}
.entry-content .ophc-cataract-copy>:first-child{margin-top:0}
.entry-content .ophc-cataract-image>p,.entry-content .ophc-cataract-image>figure{margin:0;float:none;width:auto;max-width:none}
.entry-content .ophc-cataract-image img{display:block;float:none!important;width:100%!important;max-width:100%;height:auto!important;margin:0!important;object-fit:contain;border-radius:12px}
@media(max-width:767px){.entry-content .ophc-cataract-treatment{grid-template-columns:minmax(0,1fr);gap:20px}.entry-content .ophc-cataract-image{width:100%;max-width:650px;margin-inline:auto}}

/* 1.4.1 — Appointment success popup, matching the medical theme. */
.ophc-success-dialog{box-sizing:border-box;width:calc(100% - 32px);max-width:480px;max-height:calc(100dvh - 32px);margin:auto;padding:0;border:1px solid var(--line);border-radius:22px;background:#fff;color:var(--ink);box-shadow:0 24px 80px rgba(14,43,62,.25);overflow:auto}
.ophc-success-dialog:not([open]){display:none}
.ophc-success-dialog::backdrop{background:rgba(17,42,60,.58)}
.ophc-success-panel{position:relative;text-align:center;padding:42px 30px 32px}
.ophc-success-icon{display:flex;align-items:center;justify-content:center;width:76px;height:76px;margin:0 auto 22px;background:var(--pale);color:var(--blue);border-radius:50%}
.ophc-success-icon svg{display:block;width:48px;height:48px}
.ophc-success-panel h2{font-size:clamp(23px,5vw,28px);line-height:1.3;margin:0 0 14px;overflow-wrap:anywhere}
.ophc-success-panel p{margin:0 0 26px;color:var(--muted);font-size:16px;line-height:1.75;overflow-wrap:anywhere}
.ophc-success-dialog .ophc-success-x{position:absolute;top:8px;right:8px;display:grid;place-items:center;width:44px;height:44px;padding:0;border:0;border-radius:50%;background:transparent;color:var(--muted);font:inherit;font-size:30px;line-height:1;cursor:pointer}
.ophc-success-dialog .ophc-success-x:hover{background:var(--pale);color:var(--blue)}
.ophc-success-confirm{min-width:150px;min-height:44px;cursor:pointer}
.ophc-success-dialog button:focus-visible{outline:3px solid var(--blue);outline-offset:3px}
@media(max-width:560px){.ophc-success-panel{padding:44px 22px 26px}.ophc-success-dialog{border-radius:18px}.ophc-success-confirm{width:100%}}
