* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: #23262b;
  background: #f3f4f6;
}

.rc-gallery-page {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 54px;
}

.rc-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
  min-height: 430px;
  overflow: hidden;
  border-radius: 30px;
  background: #111827;
  box-shadow: 0 24px 70px rgba(17, 24, 39, 0.22);
}

.rc-hero__image { min-height: 430px; }
.rc-hero__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(1.04) contrast(1.03);
}

.rc-hero__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 42px;
  color: #fff;
  background: linear-gradient(135deg, rgba(17, 24, 39, 0.92), rgba(55, 65, 81, 0.84));
}

.rc-kicker {
  margin: 0 0 14px;
  color: #f4b24a;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.rc-hero h1 {
  margin: 0 0 18px;
  font-size: clamp(2.1rem, 4vw, 4.35rem);
  line-height: 0.96;
  letter-spacing: -0.04em;
}

.rc-hero p:last-child {
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.55;
  color: #e5e7eb;
}

.rc-gallery-section { margin-top: 38px; }

.rc-section-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: end;
  margin: 0 4px 18px;
}

.rc-section-head h2 {
  margin: 0;
  font-size: clamp(1.65rem, 3vw, 2.5rem);
  letter-spacing: -0.035em;
}

.rc-section-head p {
  margin: 0;
  color: #69717d;
}

.rc-gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 190px;
  gap: 16px;
}

.rc-card {
  position: relative;
  display: block;
  padding: 0;
  border: 0;
  border-radius: 22px;
  overflow: hidden;
  cursor: pointer;
  background: #d1d5db;
  box-shadow: 0 16px 34px rgba(17, 24, 39, 0.13);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.rc-card--wide { grid-column: span 2; }
.rc-card--tall { grid-row: span 2; }

.rc-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.01);
  transition: transform 240ms ease, filter 240ms ease;
}

.rc-card span {
  position: absolute;
  left: 14px;
  bottom: 14px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  color: #1f2937;
  font-size: 0.9rem;
  font-weight: 700;
  box-shadow: 0 10px 22px rgba(0,0,0,0.16);
}

.rc-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(0, 0, 0, 0.28));
  opacity: 0.72;
  pointer-events: none;
}

.rc-card:hover,
.rc-card:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 22px 46px rgba(17, 24, 39, 0.2);
  outline: none;
}

.rc-card:hover img,
.rc-card:focus-visible img { transform: scale(1.06); }

.rc-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 28px;
  background: rgba(8, 12, 20, 0.92);
}

.rc-lightbox.is-open { display: flex; }

.rc-lightbox__figure {
  width: min(1120px, 100%);
  max-height: 88vh;
  margin: 0;
  text-align: center;
}

.rc-lightbox__figure img {
  max-width: 100%;
  max-height: 78vh;
  object-fit: contain;
  border-radius: 18px;
  box-shadow: 0 22px 70px rgba(0,0,0,0.45);
}

.rc-lightbox__figure figcaption {
  margin-top: 14px;
  color: #f9fafb;
  font-size: 1rem;
}

.rc-lightbox__close,
.rc-lightbox__nav {
  position: fixed;
  border: 0;
  border-radius: 999px;
  color: #111827;
  background: rgba(255,255,255,0.92);
  cursor: pointer;
  box-shadow: 0 14px 30px rgba(0,0,0,0.25);
}

.rc-lightbox__close {
  top: 22px;
  right: 22px;
  width: 46px;
  height: 46px;
  font-size: 32px;
  line-height: 42px;
}

.rc-lightbox__nav {
  top: 50%;
  width: 48px;
  height: 64px;
  transform: translateY(-50%);
  font-size: 44px;
  line-height: 54px;
}

.rc-lightbox__nav--prev { left: 18px; }
.rc-lightbox__nav--next { right: 18px; }

@media (max-width: 900px) {
  .rc-hero { grid-template-columns: 1fr; }
  .rc-hero__image { min-height: 310px; }
  .rc-hero__content { padding: 30px; }
  .rc-section-head { display: block; }
  .rc-section-head p { margin-top: 8px; }
  .rc-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 170px; }
}

@media (max-width: 560px) {
  .rc-gallery-page { width: min(100% - 20px, 1180px); padding-top: 14px; }
  .rc-hero { border-radius: 20px; }
  .rc-hero__image { min-height: 240px; }
  .rc-hero__content { padding: 24px; }
  .rc-gallery { grid-template-columns: 1fr; grid-auto-rows: 230px; gap: 12px; }
  .rc-card--wide, .rc-card--tall { grid-column: span 1; grid-row: span 1; }
  .rc-lightbox { padding: 14px; }
  .rc-lightbox__nav { width: 42px; height: 54px; font-size: 34px; }
}
