/* OTHMAN – Bilderserie und Übergänge anhand der vom Kunden gelieferten BABIN-BAU-Website abgestimmt. */
/* Globale Qualitätskorrekturen */
html{scroll-behavior:smooth}
body{-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}
img{image-rendering:auto}
::selection{background:#183e5c;color:#fff}

/* Der Referenz-Galeriebereich: neutraler Hintergrund, 1240px Inhalt,
   vier schlichte Fotokacheln pro Reihe statt weißer Schattenkarten. */
.work-showcase{padding:88px 0 96px;background:#fff}
.work-showcase .gallery-container{width:min(calc(100% - 96px),1240px);max-width:1240px}
.work-showcase .gallery-section-header{display:flex;justify-content:space-between;align-items:flex-end;gap:32px;margin-bottom:38px}
.work-showcase .gallery-eyebrow{display:flex;align-items:center;gap:12px;margin:0 0 12px;font-size:11px;line-height:1.5;font-weight:700;letter-spacing:2.1px;text-transform:uppercase;color:#606d76}
.work-showcase .gallery-short-rule{width:32px;height:3px;flex:0 0 32px;background:#a57c59}
.work-showcase .gallery-section-header h2{margin:0;color:var(--navy);font-size:clamp(30px,3.3vw,44px);font-weight:800;line-height:1.12;letter-spacing:-1.7px}
.work-showcase .gallery-show-all{display:inline-flex;align-items:center;justify-content:flex-start;gap:10px;padding:0 0 2px;margin:0;min-height:0;background:transparent;border:0;box-shadow:none;border-radius:0;font-size:14px;line-height:1.4;font-weight:700;color:var(--navy);white-space:nowrap;transition:gap .32s cubic-bezier(.22,1,.36,1),color .32s ease,transform .32s ease}
.work-showcase .gallery-show-all:hover{background:transparent;border:0;box-shadow:none;gap:15px;transform:none;color:#9a6944}
.work-showcase .gallery-show-all .icon{width:18px;height:18px}
.othman-gallery{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:28px 19px}
.othman-gallery .project-card,.othman-gallery .project-card:nth-child(1),.othman-gallery .project-card:nth-child(5){display:block;position:relative;width:100%;min-width:0;height:auto;aspect-ratio:auto;grid-column:auto;padding:0;margin:0;background:transparent;border:0;box-shadow:none;border-radius:0;overflow:visible;color:var(--ink);text-align:left;transform:none;cursor:zoom-in;transition:transform .32s cubic-bezier(.22,1,.36,1)}
.othman-gallery .project-card:hover{box-shadow:none;transform:none}
.othman-gallery .project-card .project-visual{display:block;aspect-ratio:1.28;position:relative;width:100%;height:auto;overflow:hidden;border-radius:0;background:#e4e3e1}
.othman-gallery .project-card .project-visual img{display:block;width:100%;height:100%;object-fit:cover;object-position:center;transition:transform .85s cubic-bezier(.22,1,.36,1)}
.othman-gallery .project-card:hover .project-visual img{transform:scale(1.04)}
.othman-gallery .project-card .project-info{position:relative;left:auto;bottom:auto;display:flex;align-items:start;justify-content:space-between;gap:7px;width:100%;min-height:0;background:transparent;padding:13px 0 5px;color:var(--ink)}
.othman-gallery .project-info-copy{display:flex;flex-direction:column;gap:4px;min-width:0}
.othman-gallery .project-info strong{font-size:clamp(15px,1.35vw,18px);font-weight:700;line-height:1.35;letter-spacing:-.3px;color:var(--ink)}
.othman-gallery .project-info small{font-size:11px;font-weight:400;line-height:1.5;color:var(--muted)}
.othman-gallery .project-number{display:block;min-width:0;min-height:0;flex-shrink:0;padding:0;margin:0;border:0;font-size:11px;font-weight:400;letter-spacing:0;line-height:1.6;color:#8c8f94}
.othman-gallery .project-plus{position:absolute;bottom:13px;right:13px;display:grid;place-items:center;width:35px;height:35px;background:white;color:#162f44;box-shadow:0 3px 8px #0000000d;transition:background .32s ease,transform .32s ease}
.othman-gallery .project-plus svg{width:17px;height:17px;stroke-width:1.8}
.othman-gallery .project-card:hover .project-plus{background:#f5f5f5;transform:scale(1.04)}
.othman-gallery .project-card:focus-visible{outline:3px solid #a57c59;outline-offset:5px}

/* BABIN BAU mobile behavior: 2 tiles per row also on small phones. */
@media(max-width:1060px){
 .work-showcase .gallery-container{width:min(880px,calc(100% - 64px))}
 .othman-gallery{grid-template-columns:repeat(2,minmax(0,1fr));gap:24px}
 .othman-gallery .project-info strong{font-size:18px}
}
@media(max-width:760px){
 .work-showcase{padding:68px 0 76px}
 .work-showcase .gallery-container{width:calc(100% - 36px)}
 .work-showcase .gallery-section-header{display:flex;flex-wrap:wrap;gap:8px 18px;margin-bottom:28px}
 .work-showcase .gallery-section-header h2{font-size:clamp(30px,7vw,40px);letter-spacing:-1.15px}
 .work-showcase .gallery-eyebrow{font-size:10px;gap:9px;letter-spacing:1.4px;margin-bottom:12px}
 .work-showcase .gallery-short-rule{width:24px;flex-basis:24px;height:3px}
 .work-showcase .gallery-show-all{font-size:13px;min-height:25px;margin-top:8px}
 .othman-gallery{grid-template-columns:repeat(2,minmax(0,1fr));gap:19px 12px}
 .othman-gallery .project-card .project-visual{aspect-ratio:1.16}
 .othman-gallery .project-card .project-info{padding:11px 0 0;min-height:0}
 .othman-gallery .project-info strong{font-size:14px;letter-spacing:-.25px;margin-bottom:0;line-height:1.35}
 .othman-gallery .project-info small{font-size:11px;line-height:1.45}
 .othman-gallery .project-number{display:none}
 .othman-gallery .project-plus{width:29px;height:29px;right:9px;bottom:9px}
 .othman-gallery .project-plus svg{width:15px;height:15px}
}
@media(max-width:340px){
 .othman-gallery{gap:15px 9px}
 .othman-gallery .project-info strong{font-size:13px}
 .work-showcase .gallery-container{width:calc(100% - 28px)}
}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto!important}.othman-gallery .project-card img,.othman-gallery .project-plus,.work-showcase .gallery-show-all{transition:none!important}}
/* Keep side entrance motions from creating horizontal overflow on narrow screens. */
.split-feature{overflow:clip}
