*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
background-color: #e5e4df;
font-family: 'Courier New', Courier, monospace;
color: #212121;
font-size: 13px;
line-height: 1.5;
display: flex;
flex-direction: column;
min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
img { display: block; width: 100%; }

/* ── HEADER ── */
.site-header {
display: flex;
justify-content: space-between;
align-items: flex-start;
padding: 20px 32px 20px;
background-color: #e8e7e2;
}

.site-nav { display: flex; flex-wrap: wrap; gap: 22px; align-items: center; }
.site-nav a { font-size: 13px; transition: opacity 0.2s; }
.site-nav a:hover, .site-nav a.active { opacity: 0.45; }

.site-logo {
font-size: 22px;
letter-spacing: 0.07em;
font-weight: 400;
white-space: nowrap;
}
.site-logo:hover { opacity: 0.65; }

/* ── HAMBURGER BUTTON ── */
.nav-toggle {
display: none;
flex-direction: column;
justify-content: center;
gap: 5px;
background: none;
border: none;
cursor: pointer;
padding: 4px;
z-index: 100;
}

.nav-toggle span {
display: block;
width: 22px;
height: 2px;
background-color: #212121;
transition: transform 0.3s ease, opacity 0.3s ease;
transform-origin: center;
}

/* Animate to X when open */
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── MOBILE NAV OVERLAY ── */
.mobile-nav {
display: none;
position: fixed;
inset: 0;
background-color: #e5e4df;
z-index: 9500;
flex-direction: column;
align-items: center;
justify-content: center;
}

.mobile-nav.open { display: flex; }

.mobile-nav__close {
position: absolute;
top: 20px;
right: 22px;
width: 38px;
height: 38px;
background-color: #f0a600;
border: none;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
color: #fff;
font-size: 16px;
font-family: 'Courier New', Courier, monospace;
cursor: pointer;
box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
line-height: 1;
padding: 0;
}

.mobile-nav__close:hover { opacity: 0.85; }

.mobile-nav__links {
display: flex;
flex-direction: column;
align-items: center;
gap: 32px;
}

.mobile-nav__links a {
font-size: 28px;
font-family: 'Courier New', Courier, monospace;
letter-spacing: 0.06em;
color: #212121;
transition: opacity 0.2s;
}

.mobile-nav__links a:hover,
.mobile-nav__links a.active { opacity: 0.45; }

/* ── IMAGE WRAPPER ── */
.img-wrap {
position: relative;
overflow: hidden;
background-color: #8d8d89;
border-radius: 1000px;
transition: opacity 0.25s ease;
box-shadow: 0 3px 8px rgba(0, 0, 0, 0.18), 0 1px 3px rgba(0, 0, 0, 0.12);
}

.img-wrap::after {
content: '';
position: absolute;
inset: 0;
background-image:
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='0.12'/%3E%3C/svg%3E"),
  linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.05) 0%,
    rgba(0, 0, 0, 0.07) 100%
  );
background-size: 200px 200px, auto;
pointer-events: none;
z-index: 1;
}

.img-wrap:hover { opacity: 0.82; }
.img-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; }
.img-wrap.placeholder { background-color: #acacaa; cursor: default; }

/* ── HOME GRID ── */
.home-grid {
flex: 1;
padding: 60px 32px 60px;
display: grid;
grid-template-columns: 1fr 1fr;
gap: 20px;
align-content: start;
}
.home-grid-link { display: block; cursor: pointer; }
.home-grid .img-wrap { aspect-ratio: 16 / 9; }

/* ── OVERLAY (shared base) ── */
.grid-overlay {
position: absolute;
inset: 0;
background-color: #f0a600;
display: flex;
align-items: center;
justify-content: center;
flex-direction: column;
gap: 4px;
opacity: 0;
transition: opacity 0.3s ease;
z-index: 2;
}

.grid-label {
font-family: 'Courier New', Courier, monospace;
font-weight: 400;
letter-spacing: 0.04em;
}

.overlay-date-range {
font-family: 'Courier New', Courier, monospace;
font-size: 11px;
font-weight: 400;
letter-spacing: 0.04em;
color: rgba(90, 65, 0, 0.7);
}

/* Home — hover */
.home-grid-link:hover .img-wrap { opacity: 1; }
.home-grid-link:hover .grid-overlay { opacity: 1; }
.home-grid .grid-label { font-size: 36px; color: rgba(90, 65, 0, 0.75); }

/* Gallery — hover */
.gallery-item:hover .img-wrap { opacity: 1; }
.gallery-item:hover .grid-overlay { opacity: 1; }
.gallery-grid .grid-label { font-size: 18px; color: rgba(90, 65, 0, 0.85); }

/* Also-like — hover */
.also-like__item:hover .img-wrap { opacity: 1; }
.also-like__item:hover .grid-overlay { opacity: 1; }
.also-like .grid-label { font-size: 16px; color: rgba(90, 65, 0, 0.85); }

/* ── GALLERY PAGE ── */
.page-content {
flex: 1;
padding: 0 32px 0;
}

.page-heading {
font-size: 13px;
font-weight: 400;
padding: 16px 0 14px;
letter-spacing: 0.04em;
}

.gallery-grid {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 20px;
padding-bottom: 60px;
}
.gallery-grid .img-wrap { aspect-ratio: 4 / 3; cursor: pointer; }
.gallery-item { display: block; }

/* ── YOU MAY ALSO LIKE ── */
.also-like {
background-color: #c8c7c1;
margin: 0 -32px;
padding: 36px 32px 80px;
}

.also-like__heading {
font-size: 12px;
font-weight: 400;
letter-spacing: 0.04em;
margin-bottom: 20px;
color: #7a7975;
}

.also-like__grid {
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: 20px;
}

.also-like__item { display: block; }
.also-like__item .img-wrap { aspect-ratio: 16 / 9; }

/* ── CONTACT ── */
.contact-content {
flex: 1;
padding: 24px 32px 120px;
max-width: 540px;
}
.contact-content h1 { font-size: 13px; font-weight: 400; margin-bottom: 20px; }
.contact-content .intro-text { margin-bottom: 28px; line-height: 1.8; }
.contact-form { display: flex; flex-direction: column; gap: 16px; }

.contact-form input,
.contact-form textarea {
font-family: 'Courier New', Courier, monospace;
font-size: 13px;
background: transparent;
border: none;
border-bottom: 1px solid #aaa;
padding: 8px 0;
width: 100%;
color: #212121;
outline: none;
transition: border-color 0.2s;
border-radius: 0;
}
.contact-form input:focus, .contact-form textarea:focus { border-color: #212121; }
.contact-form textarea {
border: 1px solid #aaa;
padding: 8px 10px;
min-height: 110px;
resize: vertical;
}
.contact-form textarea:focus { border-color: #212121; }
.contact-form input::placeholder, .contact-form textarea::placeholder { color: #bbb; }

.btn-submit {
align-self: flex-start;
font-family: 'Courier New', Courier, monospace;
font-size: 13px;
background: transparent;
border: 1px solid #333;
color: #212121;
padding: 9px 26px;
cursor: pointer;
transition: background 0.2s, color 0.2s;
}
.btn-submit:hover { background: #212121; color: #e5e4df; }
.thank-you-msg { display: none; margin-top: 16px; font-size: 13px; }
.thank-you-msg.visible { display: block; }

/* ── LIGHTBOX ── */
.lightbox-overlay {
display: none;
position: fixed;
inset: 0;
background: rgba(0, 0, 0, 0.75);
z-index: 9000;
justify-content: center;
align-items: center;
gap: 16px;
}
.lightbox-overlay.open { display: flex; }

.lightbox-inner {
position: relative;
display: inline-flex;
flex-shrink: 0;
}

.lightbox-inner::after {
content: '';
position: absolute;
inset: 0;
background-image:
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='250' height='250'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='250' height='250' filter='url(%23n)' opacity='0.1'/%3E%3C/svg%3E"),
  radial-gradient(
    ellipse at 30% 25%,
    rgba(255, 248, 220, 0.12) 0%,
    rgba(0, 0, 0, 0.14) 100%
  );
background-size: 250px 250px, cover;
pointer-events: none;
z-index: 5;
}

.lightbox-img {
max-width: 80vw;
max-height: 85vh;
object-fit: contain;
display: block;
box-shadow: 0 20px 54px rgba(0, 0, 0, 0.7), 0 6px 24px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
position: absolute;
top: 0;
right: -54px;
width: 38px;
height: 38px;
background-color: #fff;
border: none;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
color: #f0a600;
font-size: 16px;
font-family: 'Courier New', Courier, monospace;
cursor: pointer;
z-index: 9011;
box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
transition: opacity 0.2s;
padding: 0;
line-height: 1;
}
.lightbox-close:hover { opacity: 0.85; }

.lightbox-prev,
.lightbox-next {
flex-shrink: 0;
width: 38px;
height: 38px;
background-color: #fff;
border: none;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
color: #f0a600;
font-size: 17px;
cursor: pointer;
z-index: 9010;
box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
transition: opacity 0.2s;
}
.lightbox-prev:hover,
.lightbox-next:hover { opacity: 0.85; }

/* ── FOOTER ── */
.site-footer {
background-color: #a2a19b;
padding: 20px 32px;
font-size: 11px;
color: #7a7975;
margin-top: auto;
}

/* ── COOKIE BANNER ── */
.cookie-banner {
position: fixed; bottom: 0; left: 0; right: 0;
background-color: #EDEEEE; color: #212121;
font-size: 12px; font-family: 'Courier New', Courier, monospace;
padding: 13px 32px;
display: flex; align-items: center; justify-content: center; gap: 14px;
z-index: 8000;
}
.cookie-banner a { cursor: pointer; text-decoration: underline; }
.cookie-banner a:hover { opacity: 0.7; }
.cookie-banner.hidden { display: none; }

/* ── BACK TO TOP ── */
.back-to-top {
position: fixed; bottom: 40px; right: 22px;
width: 38px; height: 38px;
background-color: #f0a600; border-radius: 50%;
display: flex; align-items: center; justify-content: center;
color: #fff; font-size: 17px; z-index: 7000;
transition: opacity 0.2s;
box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}
.back-to-top:hover { opacity: 0.85; }

/* ── RESPONSIVE — 960px ── */
@media (max-width: 960px) {
.also-like__grid { grid-template-columns: repeat(2, 1fr); }
}

/* ── RESPONSIVE — 760px ── */
@media (max-width: 760px) {
.site-header { flex-direction: column; gap: 12px; padding: 16px 20px 10px; }
.home-grid { grid-template-columns: 1fr; padding: 6px 20px 60px; }
.page-content { padding-left: 20px; padding-right: 20px; }
.contact-content { padding-left: 20px; padding-right: 20px; padding-bottom: 120px; }
.gallery-grid { grid-template-columns: repeat(2, 1fr); }
.also-like { margin: 0 -20px; padding-left: 20px; padding-right: 20px; }
.also-like__grid { grid-template-columns: repeat(2, 1fr); }
}

/* ── RESPONSIVE — 600px — MOBILE ── */
@media (max-width: 600px) {
/* Show hamburger, hide desktop nav */
.site-nav { display: none; }
.nav-toggle { display: flex; }

/* Header stays as a single row */
.site-header {
  flex-direction: row;
  align-items: center;
  padding: 16px 20px;
}

/* Hide lightbox arrows — replaced by swipe */
.lightbox-prev,
.lightbox-next { display: none; }

/* Move close button inside the image on mobile
   since there's no arrow column to the right */
.lightbox-close {
  right: 12px;
  top: 12px;
  transform: none;
  position: fixed;
}

/* Lightbox image fills more of the screen */
.lightbox-img {
  max-width: 95vw;
  max-height: 80vh;
}

.also-like__grid { grid-template-columns: repeat(2, 1fr); }
.home-grid { padding: 20px 20px 40px; }
}

/* ── RESPONSIVE — 480px ── */
@media (max-width: 480px) {
.gallery-grid { grid-template-columns: 1fr; gap: 20px; }
.site-nav { gap: 14px; }
}
