/*
  LKR Art Stylesheet - Version 2.2
  ------------------------------------
  This file contains all the necessary CSS for the LKR Art website,
  including a responsive grid system for image galleries, navigation,
  and various component styles.
*/

/* Basic Reset and Box Sizing */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Consolidated .flex-container styles from inline HTML */
.top-images-flex-container {
  display: flex;
  background-color: #c58383;
  padding: 25px;
  justify-content: flex-start;
  box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
  border: solid #1a1a19;
  margin-top: 80px;
  width: 100%;
  overflow-x: auto;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.top-images-flex-container::-webkit-scrollbar {
  display: none;
}

/* Style for the wrappers around the individual images at the top */
.top-image-wrapper {
  margin: 10px;
  padding-right: 0px;
  flex-shrink: 0;
  scroll-snap-align: center;
  width: 80vw;
  max-width: 250px;
  box-sizing: border-box;
  display: inline-block;
  text-align: center;
}

/* Styling for images inside the top flex container */
.simpleborder {
  width: 100%;
  height: 175px;
  border: 4px #000 solid;
  outline: 4px solid #fff;
  object-fit: cover;
  display: block;
}

/* Styling for the entire photo information plaque (caption) */
.photo-info-plaque {
  width: 100%;
  padding: 5px 1px;
  text-align: center;
  margin-top: 3px;
  border: 1px dotted rgba(0, 0, 0, 0.2);
  box-shadow: inset -7px -4px 17px 12px rgba(0, 0, 0, 0.4);
  font-family: 'Montserrat', sans-serif;
  color: #fefeff;
  text-decoration-thickness: .1vw;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
}

.photo-info-plaque .plaque-title {
  font-size: 1.1435em;
  font-weight: 600;
  text-shadow: 4px 4px 5px #000;
  color: #fefeff;
  text-transform: uppercase;
}

/* Styling for Year and Medium */
.plaque-year {
  font-size: .9vw;
  text-shadow: 2px 3px 1px #000;
  color: #63636d;
  margin-top: 2px!important;
  margin-bottom: 1px;
}
.photo-info-plaque,
.photo-info-plaque .plaque-medium {
  font-size: .9vw;
  text-shadow: 2px 3px 1px #000;
  color: #fefeff;
  margin-top: 2px!important;
  margin-bottom: 1px;
}
:root {
  --gallery-columns: 2;
  --gallery-gap: 30px;
  --image-aspect-ratio: 1 / 1;
  --outer-frame-band-thickness: 37px;
  --outer-frame-band-color: rgb(126, 128, 167);
  --inner-frame-band-thickness: 27px;
  --inner-frame-band-color: rgb(120, 112, 112);
  --frame-highlight-color: rgba(255, 255, 255, 0.2);
  --frame-shadow-color-dark: rgba(0, 0, 0, 0.4);
  --frame-edge-thickness: 5px;
  --frame-band-light-shade: rgba(255, 255, 255, 0.1);
  --frame-band-dark-shade: rgba(0, 0, 0, 0.3);
  --frame-band-blur: 5px;
  --matting-thickness: 20px;
  --matting-color: #b5b4b4;
  --matting-background-texture: none;
  --image-fill-color: #cccccc;
  --image-area-background-texture: none;
  --light-below-right-shadow-offset-x: -2px;
  --light-below-right-shadow-offset-y: -2px;
  --light-below-right-shadow-blur: 5px;
  --light-below-right-shadow-spread: 0px;
  --light-below-right-shadow-color: rgba(0, 0, 0, 0.6);
  --light-below-right-inset-shadow-offset-x: 2px;
  --light-below-right-inset-shadow-offset-y: 2px;
  --light-below-right-inset-shadow-blur: 2px;
  --light-below-right-inset-shadow-color: rgba(0, 0, 0, 0.8);
  --light-frontal-shadow-offset-x: 0px;
  --light-frontal-shadow-offset-y: 0px;
  --light-frontal-shadow-blur: 5px;
  --light-frontal-shadow-spread: 0px;
  --light-frontal-shadow-color: rgba(0, 0, 0, 0.3);
  --light-frontal-inset-shadow-offset-x: 0px;
  --light-frontal-inset-shadow-offset-y: 0px;
  --light-frontal-inset-shadow-blur: 3px;
  --light-frontal-inset-shadow-color: rgba(0, 0, 0, 0.4);
  --light-above-left-shadow-offset-x: 5px;
  --light-above-left-shadow-offset-y: 5px;
  --light-above-left-shadow-blur: 8px;
  --light-above-left-shadow-spread: 0px;
  --light-above-left-shadow-color: rgba(0, 0, 0, 0.5);
  --light-above-left-inset-shadow-offset-x: -5px;
  --light-above-left-inset-shadow-offset-y: -5px;
  --light-above-left-inset-shadow-blur: 8px;
  --light-above-left-inset-shadow-color: rgba(0, 0, 0, 0.5);
  --light-above-right-shadow-offset-x: -5px;
  --light-above-right-shadow-offset-y: 5px;
  --light-above-right-shadow-blur: 8px;
  --light-above-right-shadow-spread: 0px;
  --light-above-right-shadow-color: rgba(0, 0, 0, 0.5);
  --light-above-right-inset-shadow-offset-x: 5px;
  --light-above-right-inset-shadow-offset-y: -5px;
  --light-above-right-inset-shadow-blur: 8px;
  --light-above-right-inset-shadow-color: rgba(0, 0, 0, 0.5);
  --light-below-left-shadow-offset-x: 5px;
  --light-below-left-shadow-offset-y: -5px;
  --light-below-left-shadow-blur: 8px;
  --light-below-left-shadow-spread: 0px;
  --light-below-left-shadow-color: rgba(0, 0, 0, 0.5);
  --light-below-left-inset-shadow-offset-x: -5px;
  --light-below-left-inset-shadow-offset-y: 5px;
  --light-below-left-inset-shadow-blur: 8px;
  --light-below-left-inset-shadow-color: rgba(0, 0, 0, 0.5);
  --active-shadow-offset-x: var(--light-below-right-shadow-offset-x);
  --active-shadow-offset-y: var(--light-below-right-shadow-offset-y);
  --active-shadow-blur: var(--light-below-right-shadow-blur);
  --active-shadow-spread: var(--light-below-right-shadow-spread);
  --active-shadow-color: var(--light-below-right-shadow-color);
  --active-inset-shadow-offset-x: var(--light-below-right-inset-shadow-offset-x);
  --active-inset-shadow-offset-y: var(--light-below-right-inset-shadow-offset-y);
  --active-inset-shadow-blur: var(--light-below-right-inset-shadow-blur);
  --active-inset-shadow-color: var(--light-below-right-inset-shadow-color);
}

figure:hover {
  background-color: transparent;
  transition: none;
  color: #fff;
  transform: translateZ(0);
}
figure:hover .photo-info-plaque {
  background-color: transparent;
  transition: none;
}

body {
  background-size: 100% auto;
  background-repeat: no-repeat;
  background-position: center;
  background-attachment: fixed;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  background-color: #35232e;
  padding: 0 20px;
  padding-top: 0px;
}

.dropcap .dropcap-letter {
  float: left;
  font-size: 4em;
  line-height: 0.6;
  padding-top: 0.1em;
  padding-right: 0.15em;
  padding-bottom: 0;
  font-weight: bold;
  color: #f1ece6;
  opacity: 10%;
  animation-name: fadeInDropcap;
  animation-duration: 1s;
  animation-delay: 0.5s;
  animation-fill-mode: forwards;
  animation-timing-function: ease-in-out;
}

@keyframes fadeInDropcap {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.dropcap::after {
  content: "";
  clear: both;
  display: table;
}

.dropcap {
  margin-bottom: 1.5em;
  font-size: 1.3em;
  color: #818181;
}

.main-nav {
  position: fixed;
  top: 143px;
  left: 0;
  width: 100%;
  padding: 3px 0px 0px 0px;
  box-sizing: border-box;
  z-index: 1000;
  background-color: rgba(0, 0, 0, 0.35);
  box-shadow: rgb(0 0 0 / 78%) 0px 20px 30px -9px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo-and-menu-container {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #ffffff;
}
.main-menu {
  list-style: none;
  display: flex;
  font-size: 1.1em;
  justify-content: space-around;
  width: 100%;
  margin-left: 0;
}
.main-menu-link:hover,
.main-menu-dropbtn:hover {
  background-color: rgb(81 83 119);
  color: #fff;
  transition: background-color 0.3s ease, color 0.3s ease;
}
.main-menu-li.active-menu-item > .main-menu-link,
.main-menu-li.active-menu-item > .main-menu-dropbtn {
  background-color: rgb(81 83 119);
  color: #fff;
}
.lightlink {
  color: #ddbbcc;
  margin-bottom: 8px;
  font-size: 1.9vh;
  text-decoration: underline;
  text-decoration-style: dotted;
}
.lightlink:hover {
  color: #fff;
}
.main-menu-link,
.main-menu-dropbtn {
  display: block;
  padding: 9px 8px;
  text-decoration: none;
  color: #ddd;
  text-align: center;
  text-shadow: 2px 2px 2px rgb(0 0 0 / 1);
  font-family: 'Montserrat';
  font-size: 1.1em;
  font-weight: 200;
  background-color: rgb(126, 128, 167);
  transition: background-color 0.3s ease, color 0.3s ease;
  white-space: nowrap;
  width: 100%;
  box-sizing: border-box;
}
.main-menu-dropbtn {
  cursor: pointer;
}
.submenu {
  position: fixed;
  left: 0;
  width: 100%;
  padding: 0;
  box-sizing: border-box;
  background-color: #c0c0cc;
  min-width: unset;
  max-width: unset;
  z-index: 1000;
  flex-direction: row;
  white-space: nowrap;
  height: 34px;
  box-shadow: rgba(0, 0, 0, 0.25) 0px 54px 55px, rgba(0, 0, 0, 0.12) 0px -12px 30px, rgba(0, 0, 0, 0.12) 0px 4px 6px, rgba(0, 0, 0, 0.17) 0px 12px 13px, rgba(0, 0, 0, 0.09) 0px -3px 5px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
  transition-delay: 6s;
}
.main-menu-li.menu-item-has-children:hover > .submenu {
  opacity: 1;
  visibility: visible;
}
.submenu-link {
  display: inline-block;
  flex-grow: 1;
  flex-basis: 0px;
  text-transform: uppercase;
  color: #ddbbcc;
  text-align: center;
  font-family: Montserrat;
  font-size: 15px;
  border-top: 1px #666 inset;
  text-shadow: 1px 1px black;
  letter-spacing: normal;
  font-weight: 600;
  padding: 8px;
  margin-top: 1px;
  text-decoration: none;
  transition: background-color 0.3s, color 0.3s;
  white-space: nowrap;
  text-shadow: 0px 1px #020202;
  background-color: rgb(49 51 76);
}
.submenu-link:hover {
  background-color: rgb(27 28 40);
  color: #ddbbcc;
  text-shadow: 1px 1px #000;
}
.submenu > div {
  margin: 0;
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  width: 100%;
  height: 100%;
}
.mobile-nav-icons {
  display: none;
  align-items: center;
  gap: 15px;
  height: 100%;
}
.mobile-icon {
  display: none;
}
.hamburger-menu {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  width: 30px;
  height: 25px;
  cursor: pointer;
  z-index: 1100;
}
.hamburger-menu .bar {
  width: 100%;
  height: 3px;
  background-color: #ddd;
  transition: all 0.3s ease-in-out;
}
.hamburger-menu.open .bar:nth-child(1) {
  transform: rotate(-45deg) translate(-5px, 6px);
}
.hamburger-menu.open .bar:nth-child(2) {
  opacity: 0;
}
.hamburger-menu.open .bar:nth-child(3) {
  transform: rotate(45deg) translate(-5px, -6px);
}

.main-content-wrapper {
  width: 99%;
  max-width: 99%;
  margin: 0 auto;
  margin-top: 140px!important;
  padding-top: 70px;
  margin-bottom: 10px;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: auto 1fr;
}

.main-page-header {
  grid-column: 1;
  grid-row: 1;
  background-color: #fff!important;
  padding: 0px;
  position: fixed;
  top: 12;
  width: 100%;
  height: 145px;
  z-index: 9999999999999999;
  text-align: center;
}

.logo-tagline {
  color: #ffffff;
  text-align: center;
  text-transform: uppercase;
  font-weight: 600;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.8em;
  letter-spacing: 1px;
  line-height: 1.2;
  position: relative;
  bottom: 15px;
  left: 54%;
  transform: translateX(-50%);
  z-index: 10;
  max-width: 90%;
  padding: 0 5px;
  box-sizing: border-box;
}

.artist-article-card {
  background: transparent;
  /* border: 13px solid rgba(255, 255, 255, 0.3);
  box-shadow: rgb(132 191 110 / 41%) 1px 1px 12px;
  box-shadow: 11px 8px 13px rgba(0, 0, 0, 0.7);
  padding: 12px; */
  color: #f0f0f0;
  font-size: 22px;
  font-weight: 100;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-shadow: 1px 1px 1px #909090;
  align-items: center;
  min-width: 280px;
  max-width: 600px;
  margin: 100px auto 0;
}

.artist-content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  border-radius: 50%;
}
.artist-article-card .artist-portrait {
  max-width: 351px;
  height: 351px;
  border-radius: 50%;
  border: 9px dotted #9a8484;
  margin-bottom: 25px;
  object-fit: cover;
  transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
  margin-top: 0;
  transform: translateZ(0);
}
.artist-article-card:hover .artist-portrait {
  transform: scale(1.05) rotate(2deg) translateZ(0);
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.6), 0 0 30px rgba(255, 255, 255, 0.3);
}

.artist-article-card .plaque-title {
  font-size: 1.8em;
  font-weight: 800;
  color: #fff;
  text-shadow: 3px 3px 5px rgba(0, 0, 0, 0.8);
  margin-bottom: 20px;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.artist-article-card .article-text-content {
  text-align: justify;
  font-size: 1em;
  padding: 0 10px;
}
.artist-article-card .article-intro-paragraph {
  font-weight: 100;
  margin-bottom: 1.2em;
  font-style: italic;
  color: #e0d0f0;
}

.artist-article-card .article-more-paragraph {
  margin-bottom: 1em;
  color: #f8f8f8;
}

.artist-article-card .lightlink {
  color: #ddbbcc !important;
  text-decoration: underline;
  text-decoration-style: dotted;
  font-weight: 600;
}

.artist-article-card .lightlink:hover {
  color: #fff !important;
  text-decoration-style: solid;
}

@media (max-width: 768px) {
  .artist-article-card {
    padding: 20px;
    min-width: unset;
  }
  .artist-article-card .artist-portrait {
    max-width: 150px;
    height: 150px;
    margin-bottom: 15px;
  }
  .artist-article-card .plaque-title {
    font-size: 1.5em;
  }
  .artist-article-card .article-text-content {
    font-size: 0.9em;
    text-align: left;
  }
}

.seo-text-lkr-art {
  display: block;
  text-indent: -9999px;
  overflow: hidden;
  font-size: 0;
  line-height: 0;
}

.header-subtitle-text {
  margin-top: 10px;
  font-weight: 400;
  font-size: 1.2em;
  line-height: 1.3;
  text-align: left;
  color: #ddd;
  font-family: Montserrat;
  letter-spacing: -.8px;
}

.artist-intro-text .final-paragraph {
  border-radius: 12px 12px 12px 12px;
  border: 4px solid rgb(40, 26, 26);
  outline: 4px burlywood solid;
  color: #ffffff;
}

.art-frame {
  max-width: 241px;
  min-width: unset;
  min-height: unset;
  height: auto;
  margin: 5px auto;
  padding: 5px;
  box-sizing: border-box;
}

figure {
  width: 100%;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.fixed-size-frame {
  max-width: 600px;
}
.frame-visual-wrapper {
  position: relative;
  padding: 15px;
  width: 100%;
  aspect-ratio: var(--image-aspect-ratio);
  overflow: hidden;
}
.map {
  display: block;
  clear: both;
  height: 100%;
  width: 100%;
  padding: 7.5%;
  background-color: rgb(255, 249, 224);
  border-width: 3px;
  border-style: solid;
  border-color: rgb(207, 166, 0) rgb(207, 166, 0) rgb(145, 110, 0) rgb(145, 110, 0);
}

.photo-outer-frame {
  position: absolute;
  inset: -14px;
  padding: 15px;
  box-sizing: border-box;
  box-shadow: inset var(--active-inset-shadow-offset-x) var(--active-inset-shadow-offset-y) var(--frame-band-blur) var(--inner-frame-band-thickness) var(--frame-band-dark-shade), inset calc(var(--active-inset-shadow-offset-x) * -1) calc(var(--active-inset-shadow-offset-y) * -1) var(--frame-band-blur) var(--inner-frame-band-thickness) #000000, inset var(--active-shadow-offset-x) var(--active-shadow-offset-y) var(--frame-band-blur) calc(var(--inner-frame-band-thickness) + var(--outer-frame-band-thickness)) var(--frame-band-dark-shade), inset calc(var(--active-shadow-offset-x) * -1) calc(var(--active-shadow-offset-y) * -1) var(--frame-band-blur) calc(var(--inner-frame-band-thickness) + var(--outer-frame-band-thickness)) rgba(0, 0, 0, 0.4), inset calc(var(--active-shadow-offset-x) * -0.5) calc(var(--active-shadow-offset-y) * 0.5) 0px var(--frame-edge-thickness) #000000, inset calc(var(--active-shadow-offset-x) * 0.5) calc(var(--active-shadow-offset-y) * 0.5) 0px var(--frame-edge-thickness) #000000;
  background-image: var(--outer-frame-band-texture);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.photo-matting {
  position: absolute;
  inset: calc(var(--outer-frame-band-thickness) + var(--inner-frame-band-thickness));
  padding: var(--matting-thickness);
  background-color: var(--matting-color);
  background-image: var(--matting-background-texture);
  background-size: auto;
  background-position: center;
  box-sizing: border-box;
  box-shadow: inset var(--active-inset-shadow-offset-x) var(--active-inset-shadow-offset-y) var(--active-inset-shadow-blur) var(--active-inset-shadow-color);
  display: flex;
  justify-content: center;
  align-items: center;
  background-repeat: repeat;
}

.photo-image-area {
  background-color: var(--image-fill-color);
  background-image: var(--image-area-background-texture);
  background-size: cover;
  background-position: center;
  width: 100%;
  height: 100%;
  box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.4);
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  border-left: 2px rgb(0 0 0 / 78%) solid;
  border-right: 1px #6b6b6bab solid;
  border-bottom: 1px #6b6b6bab solid;
  border-top: 2px rgb(0 0 0 / 0.8) solid;
  background-repeat: no-repeat;
}

.photo-image-area img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  max-width: 100%;
  height: auto;
  /* FIX: Apply a slight blur to soften paint/canvas texture */
  filter: blur(.08px);
}

img.outlined3 {
  -webkit-filter: drop-shadow(1px 1px 3px hsl(195, 2%, 33%)) drop-shadow(-1px 1px 3px hsl(195, 2%, 33%)) drop-shadow(1px -1px 3px hsl(195, 2%, 33%)) drop-shadow(-1px -1px 3px hsl(195, 2%, 33%));
  filter: drop-shadow(1px 1px 3px hsl(195, 2%, 33%)) drop-shadow(-1px 1px 3px hsl(195, 2%, 33%)) drop-shadow(1px -1px 3px hsl(195, 2%, 33%)) drop-shadow(-1px -1px 3px hsl(195, 2%, 33%));
}

.slideshow-button-title {
  display: none;
  padding: 8px 15px;
  font-family: 'Montserrat', sans-serif;
  font-size: 18px;
  color: #ffffff;
  background-color: #a582b2;
  border: 1px solid #ffffff;
  text-decoration: none;
  border-radius: 4px;
  text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.3);
  transition: background-color 0.3s ease, color 0.3s ease;
  white-space: nowrap;
  cursor: pointer;
}

.slideshow-button-title:hover {
  background-color: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.8);
  color: #fff;
}

.site-footer {
  text-align: center;
  width: 100%;
  text-transform: uppercase;
  color: rgb(1, 1, 1);
  text-shadow: 1px 1px 1px #9a1212;
  background-color: #fff;
  font-weight: bold;
  font-size: 14px;
  padding: 2px;
  margin-top: 20px;
}
.site-footer a {
  color: inherit;
  text-decoration: underline;
}
.site-footer a:hover {
  color: #c58383;
}

/* --- Image Gallery Section --- */
.image-gallery-section {
  display: grid;
  gap: var(--gallery-gap, 20px);
  margin: 226px auto 0 auto;
  padding: 0 10px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

/* --- Column Classes for the Gallery Section --- */
.image-gallery-section.col1 {
  grid-template-columns: repeat(1, 1fr);
}

.image-gallery-section.col2 {
  grid-template-columns: repeat(2, 1fr);
}

.image-gallery-section.col3 {
  grid-template-columns: repeat(3, 1fr);
}

.image-gallery-section.col4 {
  grid-template-columns: repeat(4, 1fr);
}

/*
  --- New CSS for a single, customizable row within the gallery ---
  This allows you to create a row of two images within a larger grid.
  A div with this class spans the full width of the parent grid container.
*/
.image-gallery-row {
  display: grid;
  grid-template-columns: repeat(var(--row-columns, 2), 1fr);
  gap: var(--gallery-gap, 20px);
  width: 100%;
  grid-column: 1 / -1;
  box-sizing: border-box;
}

.image-gallery-row.col1 {
  grid-template-columns: repeat(1, 1fr);
}

.image-gallery-row.col2 {
  grid-template-columns: repeat(2, 1fr);
}

.image-gallery-row.col3 {
  grid-template-columns: repeat(3, 1fr);
}

.image-gallery-row.col4 {
  grid-template-columns: repeat(4, 1fr);
}

/* --- Span Classes for Individual Items --- */
.span-two-cols {
  grid-column: span 2;
}
.span-three-cols {
  grid-column: span 3;
}
.span-four-cols {
  grid-column: span 4;
}

.span-two-rows {
  grid-row: span 2;
}
.span-three-rows {
  grid-row: span 3;
}
.span-four-rows {
  grid-row: span 4;
}

/* --- Responsive Adjustments for Media Queries --- */
/* Desktop */
@media (min-width: 992px) {
  .submenu.open-by-default {
    display: flex !important;
  }
  .main-menu-li:not(.active-menu-item) > .submenu {
    display: none !important;
  }
  .main-menu-li.menu-item-has-children:hover > .submenu {
    display: flex;
  }
  .main-menu-li {
    flex: 1;
  }
}
/* Tablet */
@media (min-width: 577px) and (max-width: 991px) {
  .top-images-flex-container {
    padding: 0px 10px 10px 10px;
  }
  .image-gallery-section.col2 {
    grid-template-columns: repeat(2, 1fr);
  }
  .image-gallery-row.col2,
  .image-gallery-row.col3,
  .image-gallery-row.col4 {
    grid-template-columns: repeat(2, 1fr);
  }
}
/* Mobile */
@media (max-width: 576px) {
  .top-images-flex-container {
    padding: 0 5px 10px 5px;
    justify-content: flex-start;
    flex-wrap: nowrap;
  }
  .top-images-flex-container .top-image-wrapper:not(:first-child) {
    display: none;
  }
  .top-images-flex-container .top-image-wrapper:first-child {
    display: block;
    width: 100%;
    text-align: center;
    padding-right: 0;
  }
  .top-images-flex-container .simpleborder {
    width: 100%;
    height: auto;
    max-width: 250px;
    margin-left: auto;
    margin-right: auto;
  }
  .image-gallery-section.col1,
  .image-gallery-section.col2,
  .image-gallery-section.col3,
  .image-gallery-section.col4 {
    grid-template-columns: repeat(1, 1fr);
  }
  .image-gallery-row.col1,
  .image-gallery-row.col2,
  .image-gallery-row.col3,
  .image-gallery-row.col4 {
    grid-template-columns: repeat(1, 1fr);
  }
}

@media (max-width: 1024px) {
  body {
    padding: 0 15px;
    padding-top: 54px;
  }
  .main-content-wrapper {
    padding-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    grid-template-columns: unset;
    grid-template-rows: unset;
    overflow-x: auto;
  }
  .main-page-header {
    padding: 10px 0;
  }
  .main-logo-heading {
    height: 120px;
  }
  .header-subtitle-text {
    font-size: 1.1em;
  }
  .image-gallery-section {
    margin-bottom: 0;
    padding: 10px;
    grid-column: unset;
    grid-row: unset;
  }
  .top-images-flex-container .top-image-wrapper:nth-child(n+5) {
    display: none;
  }
}
@media (max-width: 992px) {
  .top-images-flex-container .top-image-wrapper:nth-child(n+4) {
    display: none;
  }
}
@media (max-width: 768px) {
  .main-nav {
    padding: 0 10px;
  }
  .mobile-logo {
    display: block;
  }
  .main-page-header {
    padding: 5px 0;
  }
  .main-logo-heading {
    height: 90px;
  }
  .header-subtitle-text {
    font-size: 1em;
  }
  .submenu {
    position: static;
    width: 100%;
    height: auto;
    flex-direction: column;
    background-color: #000000a0;
    box-shadow: none;
    border-top: 1px solid #ffffff1a;
    display: none;
    padding: 0;
    padding-left: 30px;
  }
  .submenu.active {
    display: flex;
  }
  .mobile-nav-icons {
    display: flex;
    justify-content: flex-end;
    width: auto;
    flex-grow: 1;
    padding-right: 0;
    gap: 0;
  }
  .main-menu {
    flex-direction: column;
    position: absolute;
    top: 54px;
    left: 0;
    width: 100vw;
    background-color: #000000e0;
    height: auto;
    max-height: calc(100vh - 54px);
    overflow-y: auto;
    transform: translateX(-100%);
    transition: transform 0.3s ease-in-out;
    justify-content: flex-start;
    align-items: flex-start;
    padding-left: 0px;
    margin-right: 1px;
    border-right: 1px #000000aa solid;
    padding-right: 0px;
  }
  .main-menu.open {
    transform: translateX(0);
  }
  .main-menu-li {
    width: 100%;
    text-align: left;
    margin-right: 1px;
    border-right: 1px #000000aa solid;
    border-bottom: 1px solid #ffffff1a;
  }
  .main-menu-link,
  .main-menu-dropbtn {
    padding: 15px 0;
    font-size: 1.2em;
  }
  .main-menu-link i {
    display: none;
  }
  .submenu-link {
    padding: 10px 0;
    font-size: 0.95em;
    text-align: left;
    border-bottom: 1px dashed #ffffff0a;
    width: 100%;
    box-sizing: border-box;
  }
}