/* ==========================================================================
   Rainbow Guest House - Our Inside Pictures Gallery Styles
   ========================================================================== */

:root {
  --gallery-bg: #F5F2F8;              /* Pale lavender-gray background */
  --gallery-heading-color: #191323;   /* Very dark purple-black */
  --gallery-subtitle-color: #454B69;  /* Dark muted blue-gray */
  --gallery-card-radius: 11px;        /* Corner radius matching reference */
  --gallery-card-shadow: 0 12px 32px rgba(25, 19, 35, 0.08), 0 2px 8px rgba(0, 0, 0, 0.04);
  --gallery-placeholder-bg: #EAE5F0;  /* Card fallback background */
}

/* --------------------------------------------------------------------------
   Section & Container
   -------------------------------------------------------------------------- */
.inside-pictures-section {
  position: relative;
  width: 100%;
  background-color: var(--gallery-bg);
  color: var(--gallery-subtitle-color);
  padding-top: 100px;
  padding-bottom: 120px;
  overflow: hidden;
}

.inside-pictures-container {
  width: 100%;
}

/* --------------------------------------------------------------------------
   Header: Centered Heading & Subtitle
   -------------------------------------------------------------------------- */
.inside-pictures-header {
  text-align: center;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 48px;
}

.inside-pictures-heading {
  color: var(--gallery-heading-color);
  font-size: 48px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.4px;
  margin: 0;
}

.inside-pictures-subtitle {
  color: var(--gallery-subtitle-color);
  font-size: 16.5px;
  line-height: 1.55;
  font-weight: 400;
  letter-spacing: -0.1px;
  margin-top: 26px;
  margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   Gallery Wrapper
   -------------------------------------------------------------------------- */
.inside-pictures-gallery {
  display: flex;
  flex-direction: column;
  gap: 25px;
  max-width: 1288px;
  margin-left: auto;
  margin-right: auto;
}

/* --------------------------------------------------------------------------
   Alternating Masonry Rows
   -------------------------------------------------------------------------- */
/* Common Row Properties */
.inside-pictures-row {
  display: grid;
  gap: 25px;
}

/* Row 1: Left Stack (416px) + Right Large (Flexible ~846px) */
.inside-pictures-row--left-stack {
  grid-template-columns: 416px 1fr;
  grid-template-rows: repeat(2, 270px);
}

.inside-pictures-row--left-stack .inside-pictures-item--small-1 {
  grid-column: 1;
  grid-row: 1;
}

.inside-pictures-row--left-stack .inside-pictures-item--small-2 {
  grid-column: 1;
  grid-row: 2;
}

.inside-pictures-row--left-stack .inside-pictures-item--large {
  grid-column: 2;
  grid-row: 1 / span 2;
}

/* Row 2: Left Large (Flexible ~846px) + Right Stack (416px) */
.inside-pictures-row--right-stack {
  grid-template-columns: 1fr 416px;
  grid-template-rows: repeat(2, 270px);
}

.inside-pictures-row--right-stack .inside-pictures-item--large {
  grid-column: 1;
  grid-row: 1 / span 2;
}

.inside-pictures-row--right-stack .inside-pictures-item--small-1 {
  grid-column: 2;
  grid-row: 1;
}

.inside-pictures-row--right-stack .inside-pictures-item--small-2 {
  grid-column: 2;
  grid-row: 2;
}

/* --------------------------------------------------------------------------
   Image Card Items & Image Rendering
   -------------------------------------------------------------------------- */
.inside-pictures-item {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: var(--gallery-card-radius);
  overflow: hidden;
  box-shadow: var(--gallery-card-shadow);
  background-color: var(--gallery-placeholder-bg);
}

.inside-pictures-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  border-radius: inherit;
}

/* --------------------------------------------------------------------------
   Responsive Design
   -------------------------------------------------------------------------- */

/* Large Tablets / Laptops (1024px – 1199px) */
@media (max-width: 1199px) {
  .inside-pictures-section {
    padding-top: 80px;
    padding-bottom: 90px;
  }

  .inside-pictures-heading {
    font-size: 42px;
  }

  .inside-pictures-row--left-stack {
    grid-template-columns: 320px 1fr;
    grid-template-rows: repeat(2, 220px);
    gap: 20px;
  }

  .inside-pictures-row--right-stack {
    grid-template-columns: 1fr 320px;
    grid-template-rows: repeat(2, 220px);
    gap: 20px;
  }

  .inside-pictures-gallery {
    gap: 20px;
  }
}

/* Medium Tablets (768px – 1023px) */
@media (max-width: 1023px) {
  .inside-pictures-heading {
    font-size: 38px;
  }

  .inside-pictures-subtitle {
    font-size: 16px;
    margin-top: 20px;
  }

  .inside-pictures-header {
    margin-bottom: 38px;
  }

  .inside-pictures-row--left-stack {
    grid-template-columns: 260px 1fr;
    grid-template-rows: repeat(2, 180px);
    gap: 16px;
  }

  .inside-pictures-row--right-stack {
    grid-template-columns: 1fr 260px;
    grid-template-rows: repeat(2, 180px);
    gap: 16px;
  }

  .inside-pictures-gallery {
    gap: 16px;
  }
}

/* Mobile Devices (Below 768px) */
@media (max-width: 767px) {
  .inside-pictures-section {
    padding-top: 60px;
    padding-bottom: 60px;
  }

  .inside-pictures-heading {
    font-size: 34px;
    line-height: 1.25;
  }

  .inside-pictures-subtitle {
    font-size: 15.5px;
    line-height: 1.5;
    margin-top: 18px;
    padding-left: 10px;
    padding-right: 10px;
  }

  .inside-pictures-header {
    margin-bottom: 32px;
  }

  .inside-pictures-gallery {
    gap: 18px;
  }

  /* Single Column Stacking on Mobile */
  .inside-pictures-row--left-stack,
  .inside-pictures-row--right-stack {
    display: flex;
    flex-direction: column;
    gap: 18px;
  }

  .inside-pictures-item {
    height: 240px;
  }
}

/* Small Mobile (Below 480px) */
@media (max-width: 479px) {
  .inside-pictures-section {
    padding-top: 48px;
    padding-bottom: 48px;
  }

  .inside-pictures-heading {
    font-size: 29px;
  }

  .inside-pictures-subtitle {
    font-size: 15px;
    margin-top: 14px;
  }

  .inside-pictures-item {
    height: 210px;
  }
}
