/*
Theme Name: International Health Volunteers
Theme URI: https://internationalhealthvolunteers.com
Author: International Health Volunteers
Description: A clean, lightweight block theme for International Health Volunteers.
Version: 1.0.0
Requires at least: 6.5
Requires PHP: 7.4
License: GPLv2 or later
Text Domain: ihv
*/

/* Sticky, subtle header */
.ihv-header{position:sticky;top:0;z-index:50;border-bottom:1px solid var(--wp--preset--color--line);}
.admin-bar .ihv-header{top:32px;}
@media (max-width:782px){.admin-bar .ihv-header{top:0;position:relative;}}
.ihv-header .wp-block-site-logo img{height:auto;}
.ihv-header .wp-block-navigation a:hover{color:var(--wp--preset--color--coral);}

/* Cards */
.ihv-card{background:var(--wp--preset--color--white);border:1px solid var(--wp--preset--color--line);border-radius:14px;overflow:hidden;height:100%;transition:transform .2s ease, box-shadow .2s ease;}
.ihv-card:hover{transform:translateY(-3px);box-shadow:0 14px 34px rgba(19,41,75,.12);}
.ihv-card .wp-block-post-featured-image{margin:0;}
.ihv-card .wp-block-post-featured-image img{border-radius:0;}
.ihv-card-body{padding:0 1.25rem 1.4rem;}
.ihv-card .wp-block-post-title a{text-decoration:none;color:var(--wp--preset--color--navy);}
.ihv-card .wp-block-post-title a:hover{color:var(--wp--preset--color--coral);}
.ihv-card .wp-block-post-excerpt__excerpt{margin:0;color:var(--wp--preset--color--muted);}
.ihv-card .wp-block-post-excerpt__more-text{display:none;}

/* Eyebrow / kicker text */
.ihv-eyebrow{text-transform:uppercase;letter-spacing:.12em;font-size:.8rem;font-weight:700;color:var(--wp--preset--color--coral);}

/* Stats */
.ihv-stat{border-top:3px solid var(--wp--preset--color--coral);padding-top:1rem;}
.ihv-stat .ihv-stat-num{font-size:clamp(2rem,4vw,2.75rem);font-weight:800;line-height:1;color:var(--wp--preset--color--navy);margin:0;}
.ihv-stat p:last-child{color:var(--wp--preset--color--muted);margin-top:.4rem;}

/* Rounded images in content */
.entry-content .wp-block-image img, .wp-block-gallery img{border-radius:10px;}
.wp-block-gallery.has-nested-images figure.wp-block-image img{border-radius:10px;}

/* Hero cover text */
.ihv-hero h1, .ihv-hero p{color:#fff;}
.ihv-hero .wp-block-cover__inner-container{max-width:1200px;}

/* Footer */
.ihv-footer a{color:#fff;text-decoration:none;opacity:.85;}
.ihv-footer a:hover{opacity:1;text-decoration:underline;}
.ihv-footer .wp-block-site-logo{filter:brightness(0) invert(1);}

/* Single initiative meta */
.ihv-meta{color:rgba(255,255,255,.9);}
/* ---------- Photo viewer (lightbox) ---------- */
.wp-block-gallery img{cursor:zoom-in;transition:opacity .2s ease;}
.wp-block-gallery img:hover{opacity:.88;}
.wp-block-gallery img:focus-visible{outline:3px solid var(--wp--preset--color--coral);outline-offset:3px;}
html.ihv-lb-open{overflow:hidden;}
.ihv-lightbox{position:fixed;inset:0;z-index:100000;background:rgba(10,18,32,.94);display:flex;align-items:center;justify-content:center;}
.ihv-lightbox[hidden]{display:none;}
.ihv-lb-figure{margin:0;width:100%;height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:56px 72px 40px;box-sizing:border-box;}
.ihv-lb-figure img{max-width:100%;max-height:calc(100vh - 110px);object-fit:contain;border-radius:6px;box-shadow:0 20px 60px rgba(0,0,0,.5);transition:opacity .2s ease;cursor:default;}
.ihv-lb-figure img.is-loading{opacity:.35;}
.ihv-lb-count{color:rgba(255,255,255,.75);font-size:.9rem;margin-top:12px;letter-spacing:.05em;}
.ihv-lightbox button{position:absolute;background:rgba(255,255,255,.12);color:#fff;border:0;border-radius:999px;cursor:pointer;display:flex;align-items:center;justify-content:center;line-height:1;transition:background .2s ease;}
.ihv-lightbox button:hover,.ihv-lightbox button:focus-visible{background:var(--wp--preset--color--coral);outline:none;}
.ihv-lightbox button[hidden]{display:none;}
.ihv-lb-close{top:14px;right:14px;width:44px;height:44px;font-size:30px;}
.ihv-lb-prev,.ihv-lb-next{top:50%;transform:translateY(-50%);width:52px;height:52px;font-size:38px;padding-bottom:4px;}
.ihv-lb-prev{left:14px;}
.ihv-lb-next{right:14px;}
@media (max-width:600px){
 .ihv-lb-figure{padding:56px 8px 72px;}
 .ihv-lb-prev,.ihv-lb-next{top:auto;bottom:14px;transform:none;width:48px;height:48px;}
 .ihv-lb-prev{left:calc(50% - 64px);}
 .ihv-lb-next{right:calc(50% - 64px);}
 .ihv-lb-count{position:absolute;top:26px;left:16px;margin:0;}
}