/* =========================================================
   SUZANNE MCGILLOWAY ART — MAIN STYLESHEET

   Colours:
   Cream:      #faf9f6
   Charcoal:   #292929
   Moss green: #66745a
   ========================================================= */

/* =========================================================
   1. GLOBAL STYLES
   ========================================================= */

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Georgia, serif;
  background-color: #faf9f6;
  color: #292929;
  line-height: 1.6;
}

img {
  max-width: 100%;
}

/* =========================================================
   2. HEADER
   ========================================================= */

/* General header styles — retained for older pages */

header {
  width: 100%;
  padding: 50px 20px 25px;
  text-align: center;
}

header h1 {
  margin: 0 0 30px;
  color: #66745a;
  font-family: Optima, "Segoe UI", sans-serif;
  font-size: 2.5rem;
  font-weight: normal;
  letter-spacing: 1px;
  line-height: 1.2;
}

header h1 a {
  color: inherit;
  text-decoration: none;
}

header h1::after {
  content: "";
  display: block;
  width: min(500px, 80%);
  height: 2px;
  margin: 15px auto 0;
  background-color: #66745a;
}

/* Header used with the hamburger menu */

.site-header {
  position: relative;
  width: 100%;
  padding: 50px 70px 30px;
  text-align: center;
}

.site-header h1 {
  margin: 0;
  font-family: Optima, "Segoe UI", sans-serif;
  font-size: 2.5rem;
  font-weight: normal;
  letter-spacing: 1px;
  line-height: 1.3;
}

.site-header h1 a {
  color: #66745a;
  text-decoration: none;
}

/* =========================================================
   3. HAMBURGER MENU
   ========================================================= */

/* Menu button */

.menu-toggle {
  position: fixed;
  top: 20px;
  right: 30px;
  z-index: 1002;

  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;

  gap: 10px;
  padding: 10px 12px;
  margin: 0;

  background: transparent;
  border: none;
  cursor: pointer;
}

/* Three-line menu icon */

.menu-icon {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 25px;
  flex-shrink: 0;
}

.menu-toggle .menu-icon span {
  display: block;
  width: 25px;
  height: 2px;
  margin: 0;
  padding: 0;
  background-color: #66745a;
  transition: background-color 0.2s ease;
}

/* Menu label */

.menu-toggle .menu-label {
  display: block;
  width: auto;
  height: auto;
  margin: 0;
  padding: 0;

  background: transparent;
  color: #66745a;

  font-family: Optima, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1;
  letter-spacing: 1px;
  text-transform: uppercase;
  white-space: nowrap;
}

/* Menu hover */

.menu-toggle:hover .menu-icon span {
  background-color: #4f5c45;
}

.menu-toggle:hover .menu-label {
  color: #4f5c45;
}

/* Overlay behind menu */

.menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;

  background: transparent;

  opacity: 0;
  visibility: hidden;

  transition:
    opacity 0.3s ease,
    visibility 0.3s ease;
}

/* Green dropdown menu */

.side-menu {
  position: fixed;
  top: 62px;
  right: 30px;
  z-index: 1001;

  display: flex;
  flex-direction: column;

  width: 245px;
  max-width: calc(100vw - 30px);
  max-height: calc(100dvh - 120px);

  padding: 30px 22px 15px;

  overflow-y: auto;

  background-color: #66745a;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);

  gap: 0;

  transform: translateY(-4px);
  opacity: 0;
  visibility: hidden;

  transition:
    transform 0.25s ease,
    opacity 0.25s ease,
    visibility 0.25s ease;
}

/* Menu links */

.side-menu a {
  display: block;
  width: 100%;

  padding: 12px 0;

  color: #faf9f6;
  background: transparent;

  text-align: right;
  text-decoration: none;

  font-size: 1.05rem;

  border: none;
  border-bottom: 1px solid rgba(250, 249, 246, 0.25);
}

.side-menu a:hover,
.side-menu a:focus-visible {
  color: #ffffff;
  background: transparent;
  text-decoration: underline;
  text-underline-offset: 5px;
}

/* Close button */

.menu-close {
  position: absolute;
  top: 8px;
  right: 15px;

  color: #faf9f6;
  background: transparent;
  border: none;

  font-size: 1.8rem;

  cursor: pointer;
}

/* Open menu */

body.menu-open .side-menu {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

/* =========================================================
   4. GALLERY HOME PAGE
   ========================================================= */

.gallery-intro {
  margin: 0 0 40px;
  text-align: center;
}

.gallery-intro h2 {
  margin: 0;

  color: #66745a;

  font-family: Optima, "Segoe UI", sans-serif;
  font-size: 2rem;
  font-weight: 400;
  letter-spacing: 2px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);

  gap: 25px;

  max-width: 1200px;
  margin: 40px auto;
  padding: 0 25px;
}

.gallery-item {
  display: block;
  overflow: hidden;

  background-color: #eeeae4;

  color: inherit;
  text-decoration: none;
}

.gallery-item-image {
  overflow: hidden;
  background: #f4f2ed;
}

.gallery-item-image img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;

  transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-item-image img {
  transform: scale(1.03);
}

.gallery-item-title {
  padding-top: 15px;
}

.gallery-item-title h3 {
  margin: 0;

  color: #444;

  font-family: Optima, "Segoe UI", sans-serif;
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0.5px;

  text-decoration: none;
}

/* =========================================================
   5. PRINTS GRID
   ========================================================= */

.prints-intro {
  margin: 0 0 40px;
  text-align: center;
}

.prints-intro h2 {
  margin: 0;

  color: #66745a;

  font-family: Optima, "Segoe UI", sans-serif;
  font-size: 2rem;
  font-weight: 400;
  letter-spacing: 2px;
}

.prints-page {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));

  gap: 35px;

  max-width: 1200px;
  margin: 50px auto;
  padding: 0 30px;
}

.artwork {
  display: block;
  overflow: hidden;

  background-color: transparent;
  color: #292929;
  text-decoration: none;
}

.artwork img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;

  transition: transform 0.3s ease;
}

.artwork:hover img {
  transform: scale(1.03);
}

.artwork-title {
  display: block;
  padding: 14px 5px 5px;

  color: #292929;

  font-family: Optima, "Segoe UI", sans-serif;
  font-size: 1rem;
  text-align: center;

  transition: color 0.2s ease;
}

.artwork:hover .artwork-title {
  color: #66745a;
}

/* =========================================================
   6. INDIVIDUAL ARTWORK PAGES
   ========================================================= */

.artwork-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;

  align-items: center;
  gap: 60px;

  max-width: 1100px;
  margin: 50px auto;
  padding: 0 25px;
}

.artwork-detail .galleryitem-navigation {
  grid-column: 1 / -1;
  width: 100%;
  margin-top: 20px;
}

.artwork-image,
.artwork-info {
  min-width: 0;
}

.artwork-image img {
  display: block;
  width: 100%;
  max-height: 75vh;
  object-fit: contain;
}

.artwork-info h2 {
  margin-top: 0;

  font-family: Optima, "Segoe UI", sans-serif;
  font-size: 2rem;
  font-weight: normal;
  line-height: 1.25;
}

/* =========================================================
   7. SLIDESHOW
   ========================================================= */

.slideshow {
  position: relative;

  display: flex;
  align-items: center;
  justify-content: center;

  height: 75vh;
}

.slideshow img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.slideshow-button {
  position: absolute;
  top: 50%;
  z-index: 2;

  width: 42px;
  height: 42px;

  transform: translateY(-50%);

  border: none;

  background-color: rgba(250, 249, 246, 0.85);
  color: #66745a;

  font-size: 28px;
  line-height: 1;

  cursor: pointer;

  transition:
    background-color 0.2s,
    color 0.2s;
}

.slideshow-button:hover {
  background-color: #66745a;
  color: white;
}

.slideshow-button.previous {
  left: 10px;
}

.slideshow-button.next {
  right: 10px;
}

/* =========================================================
   8. ABOUT AND SHOP PAGES
   ========================================================= */

.about-page,
.shop-page {
  max-width: 1100px;
  margin: 40px auto 60px;
  padding: 0 25px;
}

.shop-page > h2,
.about-page > h2,
.contact-page > h2,
.prints-page > h2,
.galleryitem-page > h2,
.news-page > h2 {
  margin-bottom: 40px;

  color: #66745a;

  font-family: Optima, "Segoe UI", sans-serif;
  font-size: 2rem;
  font-weight: normal;

  text-align: center;
}

.about-content {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);

  align-items: start;
  gap: 55px;
}

.about-image img {
  display: block;
  width: 100%;
  max-height: 650px;

  margin: 0 auto;

  object-fit: contain;
  object-position: top center;
}

.about-text,
.shop-text {
  font-size: 1.05rem;
  line-height: 1.9;
}

.about-text p,
.shop-text p {
  margin-top: 0;
  margin-bottom: 22px;
}

/* =========================================================
   9. NEWS LISTING PAGE
   ========================================================= */

.news-page {
  max-width: 1050px;
  margin: 40px auto 70px;
  padding: 0 25px;
}

.news-page > h2::after {
  width: 180px;
}

.news-intro {
  max-width: 550px;
  margin: 0 auto 45px;

  color: #666;

  text-align: center;
}

.news-post {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);

  align-items: center;
  gap: 35px;

  padding: 30px 0;

  border-bottom: 1px solid #66745a;
}

.news-post:first-child {
  border-top: 1px solid #66745a;
}

.news-image {
  display: block;
  overflow: hidden;
}

.news-image img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;

  transition: transform 0.3s ease;
}

.news-image:hover img {
  transform: scale(1.03);
}

.news-date {
  margin: 0 0 8px;

  color: #66745a;

  font-size: 0.8rem;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.news-content h3 {
  margin: 0 0 12px;

  font-family: Georgia, serif;
  font-size: 1.6rem;
  font-weight: normal;
  line-height: 1.3;
}

.news-content h3 a {
  color: #292929;
  text-decoration: none;
}

.news-content h3 a:hover {
  color: #66745a;
}

.news-content > p:not(.news-date) {
  margin: 0 0 15px;

  color: #555;
  line-height: 1.8;
}

.read-more {
  display: inline-block;
  padding-bottom: 3px;

  color: #66745a;
  text-decoration: none;

  border-bottom: 1px solid transparent;

  transition: border-color 0.2s ease;
}

.read-more:hover {
  border-bottom-color: #66745a;
}

/* =========================================================
   10. INDIVIDUAL NEWS ARTICLES
   ========================================================= */

.news-article {
  max-width: 1000px;
  margin: 35px auto 70px;
  padding: 0 25px;
}

.article-content {
  display: grid;
  grid-template-columns: minmax(0, 280px) minmax(0, 1fr);

  align-items: start;
  gap: 40px;

  max-width: 850px;
  margin: 35px auto 0;
}

.article-content .article-feature-image {
  width: 100%;
  margin: 0;
}

.article-content .article-feature-image img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 450px;

  object-fit: contain;
}

.article-content .article-body {
  min-width: 0;
  max-width: none;
  margin: 0;

  font-size: 1rem;
  line-height: 1.8;
}

.article-content .article-body p {
  margin: 0 0 20px;
}

.article-extra-image {
  width: 100%;
  max-width: 280px;
  margin: 35px auto 0;
}

.article-extra-image img {
  display: block;
  width: 100%;
  height: auto;

  object-fit: contain;
}

.article-extra-image figcaption {
  margin-top: 10px;

  color: #777;

  font-size: 0.85rem;
  font-style: italic;

  text-align: center;
}

.article-footer-link a,
.article-footer-link a:visited {
  color: #66745a;
  text-decoration: none;
}

.article-footer-link a:hover {
  color: #4f5c45;
  text-decoration: underline;
}

/* Supporting article images */

.article-image-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));

  gap: 20px;

  max-width: 900px;
  margin: 35px auto 0;
}

.article-image-gallery .article-extra-image {
  width: 100%;
  max-width: none;
  margin: 0;
}

.article-image-gallery .article-extra-image img {
  display: block;
  width: 100%;
  height: 250px;

  object-fit: contain;
}

/* =========================================================
   11. CONTACT PAGE
   ========================================================= */

.contact-page {
  max-width: 600px;
  margin: 40px auto 70px;
  padding: 0 25px;
}

.contact-page > p {
  margin-bottom: 35px;
  line-height: 1.8;
  text-align: center;
}

.contact-page form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.contact-page label {
  margin-top: 12px;
}

.contact-page input,
.contact-page textarea {
  width: 100%;
  padding: 12px;

  border: 1px solid #d5d1c8;
  border-radius: 0;

  background: white;
  color: #292929;

  font: inherit;
}

.contact-page input:focus,
.contact-page textarea:focus {
  outline: 2px solid #66745a;
  outline-offset: 2px;
}

.contact-page button {
  align-self: flex-start;

  margin-top: 15px;
  padding: 12px 24px;

  border: 1px solid #66745a;

  background: #66745a;
  color: white;

  font: inherit;

  cursor: pointer;
}

.contact-page button:hover {
  background: #4f5c45;
}

/* =========================================================
   12. FOOTER
   ========================================================= */

footer {
  margin-top: 40px;
  padding: 30px 20px;

  border-top: 1px solid #dedbd5;

  color: #666;

  font-size: 14px;
  text-align: center;
}

footer a {
  margin: 0 10px;

  color: #292929;
  text-decoration: none;
}

footer a:hover,
footer a:focus-visible {
  text-decoration: underline;
}

.footer-links {
  display: flex;
  justify-content: center;
  align-items: center;

  gap: 25px;
  margin-top: 10px;
}

.footer-links a,
.instagram-link {
  display: inline-flex;
  align-items: center;

  gap: 8px;

  color: #66745a;
  text-decoration: none;
}

.contact-icon,
.instagram-icon {
  width: 20px;
  height: 20px;

  fill: none;
  stroke: #66745a;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.footer-links a:hover {
  text-decoration: underline;
}

/* =========================================================
   13. GALLERY ITEM PAGES
   ========================================================= */

.galleryitem-page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 40px 100px;
}

.galleryitem-header {
  margin-bottom: 40px;
  text-align: center;
}

.galleryitem-category {
  margin: 0 0 12px;

  color: #66745a;

  font-size: 0.8rem;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.galleryitem-header h2 {
  margin: 0;

  color: #66745a;

  font-family: Optima, "Segoe UI", sans-serif;
  font-size: 2rem;
  font-weight: 400;
  letter-spacing: 2px;
}

.galleryitem-main-image {
  position: relative;

  display: flex;
  align-items: center;
  justify-content: center;

  height: min(70vh, 650px);
  min-height: 280px;

  margin-bottom: 20px;
}

.galleryitem-main-image img {
  display: block;

  max-width: 100%;
  max-height: 100%;

  width: auto;
  height: auto;

  object-fit: contain;
}

.galleryitem-details {
  max-width: 700px;
  margin: 0 auto;
}

.galleryitem-details dl {
  margin: 0;
}

.galleryitem-details dl > div {
  display: grid;
  grid-template-columns: 140px 1fr;

  padding: 13px 0;

  border-bottom: 1px solid #e5e3dd;
}

.galleryitem-details dt {
  color: #66745a;

  font-size: 0.85rem;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.galleryitem-details dd {
  margin: 0;
  color: #444;
}

.galleryitem-description {
  margin-top: 35px;

  color: #555;
  line-height: 1.8;
}

.galleryitem-enquiry {
  display: inline-block;

  margin-top: 35px;
  padding: 13px 24px;

  background-color: #66745a;
  color: #faf9f6;

  text-decoration: none;
}

.galleryitem-enquiry:hover {
  background-color: #4f5c45;
}

/* =========================================================
   14. GALLERY ITEM NAVIGATION
   ========================================================= */

.galleryitem-navigation {
  display: flex;
  justify-content: space-between;

  max-width: 900px;
  margin: 80px auto 0;
  padding-top: 30px;

  gap: 30px;

  border-top: 1px solid #e5e3dd;
}

.galleryitem-nav-button {
  display: flex;
  align-items: center;

  min-width: 180px;
  gap: 14px;

  padding: 14px 18px;

  color: #66745a;

  border: 1px solid #66745a;

  font-family: Optima, "Segoe UI", sans-serif;
  text-decoration: none;

  transition:
    background-color 0.2s ease,
    color 0.2s ease;
}

.galleryitem-nav-button:last-child {
  justify-content: flex-end;
  text-align: right;
}

.galleryitem-nav-button small {
  display: block;

  margin-bottom: 4px;

  font-size: 0.7rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.galleryitem-nav-arrow {
  font-size: 1.3rem;
}

.galleryitem-nav-button:hover {
  background-color: #66745a;
  color: #faf9f6;
}

/* =========================================================
   15. GALLERY ITEM ARROWS
   ========================================================= */

.galleryitem-arrow {
  position: absolute;
  top: 50%;
  z-index: 2;

  display: flex;
  align-items: center;
  justify-content: center;

  width: 44px;
  height: 44px;
  padding: 0;

  transform: translateY(-50%);

  border: 1px solid rgba(102, 116, 90, 0.5);
  border-radius: 50%;

  background-color: rgba(250, 249, 246, 0.92);
  color: #66745a;

  font-family: Arial, sans-serif;
  font-size: 25px;
  line-height: 1;

  cursor: pointer;

  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    opacity 0.2s ease;
}

.galleryitem-arrow-left {
  left: 12px;
}

.galleryitem-arrow-right {
  right: 12px;
}

.galleryitem-arrow:hover {
  background-color: #66745a;
  color: #faf9f6;
}

.galleryitem-arrow:focus-visible {
  outline: 2px solid #66745a;
  outline-offset: 4px;
}

/* =========================================================
   16. RESPONSIVE — TABLETS
   ========================================================= */

@media (max-width: 800px) {
  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 15px;
    padding: 0 15px;
  }

  header h1 {
    font-size: 2rem;
  }

  .artwork-detail {
    gap: 30px;
  }
}

/* =========================================================
   17. RESPONSIVE — PHONES
   ========================================================= */

@media (max-width: 700px) {
  .artwork-detail {
    grid-template-columns: 1fr;
    gap: 25px;
    margin: 25px auto;
  }

  .artwork-image,
  .artwork-info {
    width: 100%;
  }

  .artwork-detail .galleryitem-navigation {
    grid-column: 1;
    margin-top: 30px;
  }

  .artwork-image img {
    max-height: 75vh;
  }

  .slideshow {
    height: 60vh;
  }

  .about-page,
  .shop-page {
    margin-top: 25px;
    padding: 0 20px;
  }

  .about-page > h2,
  .shop-page > h2,
  .news-page > h2 {
    margin-bottom: 25px;
    font-size: 1.8rem;
  }

  .about-content,
  .shop-content {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .about-image,
  .shop-image img {
    max-width: 320px;
    max-height: 450px;
  }

  .about-text,
  .shop-text {
    font-size: 1rem;
    line-height: 1.8;
  }

  .news-page {
    margin-top: 25px;
    padding: 0 20px;
  }

  .news-intro {
    margin-bottom: 25px;
  }

  .news-post {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 25px 0;
  }

  .news-image img {
    aspect-ratio: 16 / 9;
  }

  .news-content h3 {
    font-size: 1.4rem;
  }

  .news-article {
    margin-top: 25px;
    padding: 0 20px;
  }

  .article-content {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .article-content .article-feature-image {
    max-width: 280px;
    margin: 0 auto;
  }

  .article-extra-image {
    max-width: 280px;
    margin-top: 30px;
  }

  .article-image-gallery {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .article-image-gallery .article-extra-image img {
    height: auto;
    max-height: 350px;
  }
}

/* =========================================================
   18. RESPONSIVE — SMALL PHONES
   ========================================================= */

@media (max-width: 600px) {
  .side-menu {
    top: 62px;
    right: 10px;
    width: 220px;
    padding: 30px 18px 12px;
  }

  .galleryitem-page {
    padding: 110px 20px 70px;
  }

  .galleryitem-header h2 {
    font-size: 1.9rem;
  }

  .galleryitem-main-image {
    height: 50vh;
    min-height: 250px;
    margin-bottom: 40px;
  }

  .galleryitem-details dl > div {
    grid-template-columns: 110px 1fr;
    gap: 15px;
  }

  .galleryitem-navigation {
    margin-top: 60px;
    gap: 12px;
  }

  .galleryitem-nav-button {
    min-width: 0;
    flex: 1;
    padding: 12px;
    font-size: 0.9rem;
  }

  .galleryitem-nav-button small {
    font-size: 0.6rem;
  }

  .galleryitem-arrow {
    width: 36px;
    height: 36px;
    font-size: 21px;
  }

  .galleryitem-arrow-left {
    left: 5px;
  }

  .galleryitem-arrow-right {
    right: 5px;
  }
}

/* =========================================================
   19. RESPONSIVE — VERY SMALL PHONES
   ========================================================= */

@media (max-width: 450px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  header {
    padding-top: 35px;
  }

  header h1 {
    font-size: 1.8rem;
  }

  .site-header {
    padding: 70px 15px 25px;
  }

  .site-header h1 {
    font-size: 1.6rem;
  }

  .menu-toggle {
    top: 15px;
    right: 10px;
    transform: none;
  }

  header > nav:not(.side-menu) {
    gap: 10px;
  }

  header > nav:not(.side-menu) a {
    padding: 9px 18px;
  }

  .artwork-detail {
    padding: 0 15px;
  }

  .artwork-info h2 {
    font-size: 1.7rem;
  }
}

/* =========================================================
   20. REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {
  .side-menu,
  .menu-overlay,
  .menu-toggle span,
  .gallery-item-image img,
  .artwork img,
  .artwork-title,
  .slideshow-button,
  .galleryitem-arrow,
  .news-image img,
  .read-more,
  .galleryitem-nav-button {
    transition: none;
  }
}
