/* =================================================
   ROBERT HALL GLOBAL STYLES
================================================== */
:root {
  --transition-speed: 0.9s;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  /*font-family: Arial, sans-serif;*/
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

html, body {
  overflow-x: hidden;
  overflow-y: scroll;
  scrollbar-width: none;
}

body {
  background-color: #FAFAF7;
  color: #1C2E4A;
  line-height: 1.2;
}

/* Section styles */
section {
  padding: 5rem 1rem;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title h2 {
  color: #1C2E4A;
  font-size: 2.5rem;
  position: relative;
  display: inline-block;
  padding-bottom: 1rem;
}

.section-title h2::after {
  content: '';
  position: absolute;
  left: 25%;
  bottom: 0;
  width: 50%;
  height: 3px;
  /*background-color: var(--primary-color);*/
  background-color: #1C2E4A;
}

.section-title p {
  color: var(--text-light);
  font-size: 1.2rem;
  max-width: 800px;
  margin: 1rem auto;
}

/* =================================================
   ROBERT HALL HERO SECTION
================================================== */
.hero-section {
  height: 95vh;
  background-image: url('../images/hero_image.jpg');
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding: 2rem;
}

.hero-content h1 {
  font-size: 6em;
  margin-bottom: 0rem;
  /*color: #FFFDD0;*/
  color: #FAFAF7;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 1);
}

.hero-button {
  display: inline-block;
  margin-top: 15px;
  padding: 12px 30px;
  /*background-color: #80C4C4;*/
  background-color: #80C4C4;
  /*color: #1C2E4A;*/
  color: #1C2E4A;
  border: 2px solid #1C2E4A;
  text-decoration: none;
  font-size: 1.2rem;
  font-weight: bold;
  border-radius: 15px;
}


/* =================================================
   ROBERT HALL GALLERY FOR SALE AND SOLD SECTION
================================================== */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.photo-item {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: transform var(--transition-speed);
  height: 250px;
}

.photo-item:hover {
  transform: translateY(-5px);
}

.photo-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-speed);
}

.photo-item:hover img {
  transform: scale(1.05);
}

/* Lightbox styles */
.lightbox {
  display: none;
  position: fixed;
  z-index: 2000;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  padding: 1rem;
}

.lightbox-content {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 80%;
}

.lightbox-content img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
}

.close-lightbox {
  position: absolute;
  top: 1rem;
  right: 2rem;
  color: white;
  font-size: 2.5rem;
  cursor: pointer;
  z-index: 2001;
}

.prev-btn, .next-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: white;
  font-size: 2rem;
  cursor: pointer;
  z-index: 2001;
  background-color: rgba(0, 0, 0, 0.3);
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.prev-btn {
  left: 2rem;
}

.next-btn {
  right: 2rem;
}

.lightbox-caption {
  position: absolute;
  bottom: 2rem;
  left: 0;
  width: 100%;
  text-align: center;
  color: white;
  padding: 1rem;
}

.lightbox-caption p {
  margin: 0;
  font-size: 1.2rem;
}

.gallery-store-button {
  display: inline-block;
  margin-top: 50px;
  padding: 12px 30px;
  /*background-color: #80C4C4;*/
  background-color: #CFE8E8;
  color: #1C2E4A;
  border: 3px solid #1C2E4A;
  text-decoration: none;
  font-size: 2rem;
  font-weight: bold;
  border-radius: 15px;
  box-shadow: 4px 4px 4px;
}

/* =================================================
   IMAGE + TEXT SECTION STYLES 
================================================== */
/* FULL WIDTH COLOURED SECTIONS */
.commissions-section,
.aboutme-section {
  /*background-color: #BFD7EA;*/
  background-color: #CFE8E8;
  box-sizing: border-box;
}

/* Different colour for About Me */
.aboutme-section {
  background-color: #FAFAF7;
}

.commissions-section,
.aboutme-section {
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 2.5rem;
  padding-right: 2.5rem;
}

.image-text-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  padding-top: 3rem;
  padding-bottom: 3rem;
}

/* make the section title span both columns (so it sits above the columns) */
.image-text-section .section-title {
  grid-column: 1 / -1;
  text-align: center;
  margin-bottom: 1.25rem;
}

/* columns take full width of their grid cell */
.image-column,
.text-column {
  width: 100%;
}

/* images behave consistently */
.image-column img {
  display: block;          /* removes inline-gap and baseline issues */
  width: 100%;
  /* height: 380px;           fixed visual height for consistent alignment */
  height: clamp(250px, 35vw, 380px);
  max-width: 100%;
  object-fit: cover;      /* crop to fill without distortion */
  border-radius: 12px;
  margin: 0 auto;
}

/* optional: keep text comfortable and vertically centered */
.text-column {
  font-size: 1.05rem;
  line-height: 1.6;
  padding: 0 2rem;
  align-self: center;     /* ensure text column vertically centres with the image */
}

/* Responsive: stack columns on narrow viewports */
/*@media (max-width: 900px) {
  .image-text-section {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .image-text-section .section-title {
    margin-bottom: 1rem;
  }

  .image-column img {
    height: auto;
    max-height: none;
  }

  .text-column {
    padding: 0 1rem;
  }
}*/


/* =================================================
   CONTACT FORM SECTION
================================================== */
.contactus {
    display: grid;
    /*justify-content: center; REMOVED AND ADDED place-items: SO THE CONTACT FORM COULD BE WIDER;*/
    place-items: center;
    align-items: center;
    /*min-height: 100vh;*/
    background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), url(../images/rhart_com_4.jpg) 80% 20%;
    background-size: cover;
}

.cu_container {
    opacity: 80%;
    background: ghostwhite;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 500px;
    text-align: center;
}

.cu_container h1 {
    margin-bottom: 20px;
    color: darkslategrey;
}

.cu_container p {
    color: darkslategrey;
}

/* Form Styles */
form {
    display: flex;
    flex-direction: column;
}

input[type="text"],
input[type="email"],
textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
}

textarea {
    resize: vertical;
    min-height: 150px;
}

.form_button {
    padding: 10px;
    background-color: #0073e6;
    color: ghostwhite;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

.form_button:hover {
    background-color: #005bb5;
}

/* =================================================
   FOOTER SECTION
================================================== */
.footer-section {
  background-color: #1C2E4A;
  color: #FAFAF7;
  text-align: center;
  padding: 80px 10%;
}

.footer-links {
  font-size: 1.3rem;
  margin-bottom: 30px;
}

.footer-links a {
  color: #FAFAF7;
  text-decoration: none;
  margin: 0 10px;
}

/* =================================================
   RESPONSIVE ADJUSTMENTS FOR LAPTOP/TABLET
================================================== */

/*@media (max-width: 900px) {
  .image-text-section {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .left-image .image-column,
  .left-image .text-column,
  .right-image .image-column,
  .right-image .text-column {
    grid-column: 1;
  }
}*/

/* =================================================
   RESPONSIVE LAYOUT
================================================== */
@media (max-width: 900px) {

  /* Hero */
  .hero-content h1 {
    font-size: 3rem;
  }

  .hero-button {
    display: block;
    width: fit-content;
    margin: 15px auto 0;
  }

  /* Gallery */
  .photo-grid {
    grid-template-columns: 1fr;
  }

  .photo-item {
    height: auto;
  }

  .photo-item img {
    aspect-ratio: 4 / 3;
  }

  /* Commissions / About Me */
  .image-text-section {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }

  .image-column,
  .text-column {
    grid-column: 1;
  }

  .image-column img {
    height: auto;
    max-height: 500px;
  }

  .text-column {
    padding: 0;
    font-size: 1rem;
  }

  /* Section spacing */
  section {
    padding: 4rem 1rem;
  }

  .section-title h2 {
    font-size: 2rem;
  }

  .section-title p {
    font-size: 1rem;
  }

  /* Contact form */
  .cu_container {
    width: 100%;
    max-width: 100%;
  }

  /* Footer */
  .footer-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }

  .footer-links a {
    margin: 0;
  }

  /* Lightbox navigation */
  .prev-btn,
  .next-btn {
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
  }

  .prev-btn {
    left: 0.5rem;
  }

  .next-btn {
    right: 0.5rem;
  }
}


