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

body {
  font-family: system-ui, -apple-system, sans-serif;
  background: #ffffff;
  color: #111;
  min-height: 100vh;
}

/* ---------- Header ---------- */
/* top row: camera + coat split into two equal full-width blocks.
   flag below it, stretched to the full width WITHOUT keeping proportions */
header {
  display: flex;
  flex-direction: column;
  width: 100%;
  gap: 0;
  background: #ffffff;
  border-bottom: 1px solid #eee;
}

.header-top {
  position: relative;
  display: flex;
  width: 100%;
}

.header-top img {
  flex: 1;
  min-width: 0;
  width: 100%;
  height: 34vh;
  object-fit: contain;
  display: block;
}

.trip-places {
  position: absolute;
  top: 50%;
  left: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.02em;
  transform: translate(-50%, -50%);
  font-family: "Montserrat", "League Spartan", Arial, sans-serif;
  font-size: clamp(24px, 2.5vw, 48px);
  font-weight: 700;
  line-height: 0.92;
  letter-spacing: -0.045em;
  pointer-events: none;
  text-align: center;
}

.place-toshkent { color: #2581e8; }
.place-samarqand { color: #e01e2f; }
.place-buxoro { color: #258a3a; }

.header-flag {
  width: 100%;
}

.header-flag img {
  width: 100%;
  height: 26vh;
  object-fit: fill; /* stretch to width, don't keep aspect ratio */
  display: block;
}

/* ---------- Gallery ---------- */
/* uniform grid: every tile the same size, with a small gap between images.
   Images are scaled up to fully fit inside their tile (no cropping) */
.gallery {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
  padding: 6px;
}

.gallery .row {
  display: flex;
  gap: 6px;
  width: 100%;
}

.gallery .item {
  flex: 1 1 0;
  min-width: 0;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  background: #f4f4f4;
}

.gallery .item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.gallery .item:hover img {
  transform: scale(1.04);
  z-index: 2;
}

/* ---------- Footer ---------- */
.trip-footer {
  padding: clamp(32px, 6vw, 72px) 24px;
  border-top: 1px solid #eee;
  color: #555;
  font-size: clamp(16px, 1.8vw, 24px);
  line-height: 1.3;
  text-align: center;
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.lightbox.open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox img {
  max-width: 92vw;
  max-height: 90vh;
  object-fit: contain;
  animation: zoom 0.18s ease;
}

@keyframes zoom {
  from { transform: scale(0.96); opacity: 0; }
  to   { transform: scale(1);   opacity: 1; }
}

.lightbox .counter {
  position: fixed;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 13px;
  letter-spacing: 1px;
  color: #444;
  background: rgba(0, 0, 0, 0.06);
  padding: 4px 14px;
  user-select: none;
}

.lightbox .close {
  position: fixed;
  top: 12px;
  right: 16px;
  font-size: 34px;
  color: #333;
  background: none;
  border: none;
  cursor: pointer;
  line-height: 1;
  padding: 4px 10px;
  transition: color 0.15s, background 0.15s;
  z-index: 101;
}

.lightbox .close:hover {
  color: #000;
  background: rgba(0, 0, 0, 0.08);
}

/* click zones: tap right half -> next, left half -> prev */
.lightbox .zone {
  position: fixed;
  top: 0;
  height: 100%;
  width: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  z-index: 50;
}

.lightbox .zone.prev { left: 0; justify-content: flex-start; }
.lightbox .zone.next { right: 0; justify-content: flex-end; }

.lightbox .zone .arrow {
  width: 54px;
  height: 54px;
  background: rgba(0, 0, 0, 0.06);
  color: #111;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  margin: 0 14px;
  opacity: 0;
  transition: opacity 0.15s, background 0.15s;
  user-select: none;
  pointer-events: none;
}

.lightbox .zone:hover .arrow {
  opacity: 1;
  background: rgba(0, 0, 0, 0.14);
}

@media (max-width: 900px) {
  .header-top img { height: 22vh; }
  .header-flag img { height: 14vh; }
  .trip-places { font-size: clamp(18px, 5vw, 32px); }
}
