html, body {
    width: 100%;
    overflow-x: hidden; 
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

header {
    padding: 20px;
    display: flex;
    flex-direction: column; 
    justify-content: center;
    align-items: center;
    position: relative;
}

header::after {
    content: '';
    display: block;
    width: 1000px;
    height: 1px;
    background-color: black;
    position: absolute;
    left: 50%;
    bottom: 10px;
    transform: translateX(-50%);
}

#siteLogo {
	max-width: 800px;
	width: 100%;
	height: auto;
	display: block;
	transition: transform 0.3s ease, filter 0.5s ease;
}

#siteLogo:hover {
    filter: drop-shadow(0px 0px 15px rgba(0, 0, 0, 0.5));
    transform: scale(1.01);
}

/* === POPUP STYLES === */

#popup {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background-color: rgba(0, 0, 0, 0.7);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

#popup-inner {
  display: flex;
  flex-direction: row;
  max-width: 900px;
  width: 90%;
  height: 600px;
  background-color: #fff;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 0 20px rgba(0,0,0,0.4);
}

#popup-left, #popup-right {
  width: 50%;
  height: 100%;
  box-sizing: border-box;
}

#popup-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2em;
  font-family: Arial, sans-serif;
  color: #333;
}

.popup-logo {
  max-width: 100px;
  height: auto;
  margin: 0 auto 1rem;
  display: block;
}

.popup-wordmark {
  max-width: 350px;
  height: auto;
  margin: 0 auto 0.5rem;
  display: block;
}

/* Wraps heading, text, and form */
.popup-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 1;
  gap: 1.25rem;
  padding-top: 0.5rem;
}

#popup-left h2 {
  font-size: 32px;
  font-weight: bold;
  margin-bottom: 1rem;
  text-align: center;
}

#popup-left p {
  font-size: 18px;
  line-height: 1.5;
  margin-bottom: 1rem;
}

#popup-left form {
  display: flex;
  flex-direction: column;
  gap: 1em;
}

#popup-left input[type="email"],
#popup-left button[type="submit"] {
  width: 100%;
  box-sizing: border-box;
}

#popup-left input[type="email"] {
  padding: 12px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

#popup-left button[type="submit"] {
  padding: 12px;
  font-size: 16px;
  font-weight: bold;
  background-color: #1a1a1a;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

#popup-left button[type="submit"]:hover {
  background-color: #333;
}

/* Success state styling */
#submit-button.success {
  background-color: #28a745;
  color: white;
  cursor: default;
  pointer-events: none;
}

/* Right side image container */
#popup-right {
  flex: 1;
  display: flex;
  align-items: stretch;
  height: 100%;
}

#popup-right img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

#popup-close {
  position: absolute;
  top: 12px;
  right: 18px;
  font-size: 32px;
  font-weight: bold;
  background: none;
  border: none;
  color: #111;
  cursor: pointer;
  z-index: 10001;
  transition: color 0.2s ease;
}

#popup-close:hover {
  color: #ff0000;
}



nav ul {
    list-style-type: none;
    padding: 0;
    display: flex;
    gap: 10px;
    position: relative;
    justify-content: center; 
    z-index: 1;
}

.menu-icon div {
    width: 25px;
    height: 3px;
    background-color: black;
    margin: 4px 0;
    transition: 0.4s;
}

nav li {
    cursor: pointer;
    position: relative; 
    padding: 10px;
}

nav li:hover {
    background-color: #e0e0e0;
    text-decoration: underline;
}

.submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #fff;
    border: 1px solid #ccc;
    list-style-type: none;
    padding: 0;
    margin: 0;
    width: 300px;
    font-size: smaller;
    z-index: 1;
    column-count: 2;
    column-gap: 20px; 
}

.submenu li {
    padding: 10px;
    cursor: pointer;
    -webkit-column-break-inside: avoid;
    page-break-inside: avoid;
    break-inside: avoid;
}

.submenu li:hover {
    background-color: #e0e0e0;
    text-decoration: none !important;
}

nav li:hover .submenu {
    display: block;
}

.submenu a {
    color: inherit; 
    text-decoration: none; 
    display: block;
    padding: 10px;
    height: 100%;
}

.submenu li {
    padding: 0; 
    cursor: pointer;
    -webkit-column-break-inside: avoid;
    page-break-inside: avoid;
    break-inside: avoid;
}

.submenu li:hover, .submenu a:hover {
    background-color: #e0e0e0; 
}

nav li a:link, nav li a:visited {
    color: #000; 
    text-decoration: none;
}

.quote-container {
    position: relative;
    width: 100%;
    max-width: 800px;
    padding: 20px;
    text-align: center;
    margin: auto;
}

.quote-container h1 {
    font-style: italic;
}


.gallery-quote {
    font-size: 24px;
    line-height: 1.5;
    color: #333;
    margin: 0 auto;
    max-width: 80%;
    position: relative;
    font-style: italic;
    padding: 20px;
}

.quote-author {
    display: block;
    font-size: 20px;
    margin-top: 10px;
    font-weight: bold;
}


.carousel-container {
    position: relative;
    width: 100%;
    max-width: 800px;
    overflow: hidden;
    margin: 20px auto;
}

.carousel-slider {
    display: flex;
    transition: transform 0.3s ease;
}

.carousel-image {
    min-width: 100%;
    height: auto;
    display: block;
}

.carousel-arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	background-color: rgba(0, 0, 0, 0.5);
	border: none;
	cursor: pointer;
	width: 50px;
	height: 70px;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0.6;
    transition: opacity 0.3s ease;
}

.carousel-arrow:hover {
    opacity: 1; 
}

.carousel-arrow::before {
    content: "";
    border-style: solid;
    display: inline-block;
    width: auto; 
    height: auto; 
    vertical-align: middle;
    opacity: 1;
}

.carousel-arrow-left {
    left: 0;
}

.carousel-arrow-right {
    right: 0;
}

.carousel-arrow-left::before {
    border-width: 20px 20px 20px 0; 
    border-color: transparent #fff transparent transparent;
}

.carousel-arrow-right::before {
    border-width: 20px 0 20px 20px;  
    border-color: transparent transparent transparent #fff;
}


.video-container {
    width: 70%;
    padding-bottom: 39.38%;
    position: relative;
    margin-left: auto;
    margin-right: auto;
}

article {
    padding: 20px;
    flex: 1;
}

#artists {
    text-align: center;
    margin: 0 auto;
    width: 800px; 
}

.artist-grid {
    display: grid;
    grid-template-columns: repeat(3, 253px); 
    grid-gap: 20px; 
    justify-content: center;
    margin: 0 auto; 
}

.artist {
    cursor: pointer;
    text-decoration: none;
    color: #000;
    display: block;
}

.artist h3 {
    margin-top: 10px;
    text-align: center;
}

.artist-image {
    width: 253px;
    height: 253px; 
    background-size: cover;
    background-position: center;
    transition: transform 0.3s ease;
}

.artist-image:hover {
    transform: scale(1.05);
}

.dark-theme {
    background-color: #121212;
    color: #ffffff;
}

.dark-theme header {
    background-color: #333;
}

.dark-theme footer {
    background-color: #333;
}

.menu-icon {
    display: none;
}

footer {
    text-align: center;
    padding: 20px 0;
    width: 800px;
    margin: 0 auto;
}

.footer-logo {
    text-align: center;
    margin-bottom: 20px;
}

.footer-logo img {
    max-width: 600px;
    width: 100%;
    height: auto;
}

.footer-content p {
    margin: 5px 0;
}

.footer-content a {
    color: #000;
    text-decoration: none;
}

.footer-content a:hover {
    border-bottom: 1px solid #000;
}

.artist-profile {
    overflow: hidden;
    margin: 30px auto; 
    max-width: 1000px;
    display: flex; 
    flex-direction: column; 
    align-items: center; 
}

.artist-profile h1 {
    width: 100%; 
    padding: 15px 20px;
    margin: 0;
    text-align: center;
    font-size: 36px; 
}

.artist-profile h2 {
    width: 100%; 
    padding: 15px 20px;
    margin: 0;
    text-align: center;
}


.artist-details {
    display: flex;
    flex-wrap: wrap;
    width: 100%; 
    max-height: 500px;
    overflow: hidden;
}

.artist-bio {
    flex: 1;
    padding: 20px;
    line-height: 1.6;
    transition: max-height 0.5s ease;
}

#readMoreBtn {
    display: block;
    padding: 10px 20px;
    margin: 10px auto;
    background-color: #333;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.artist-bio p {
    text-align: justify;
    margin-bottom: 15px;
}

.artist-photo {
    flex-basis: 30%;
    text-align: center;
    padding: 20px;
}

.artist-photo img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
    padding-top: 40px;
}

.gallery-view {
    max-width: 900px; 
    margin: 0 auto; 
    padding: 20px; 
    text-align: center;
  }

  .gallery-view h3 {
    margin-top: 50px;
  }
  
  .gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); 
    gap: 20px; 
    padding: 0;
    list-style: none;
  }
  
  .gallery-item {
    display: flex;
    flex-direction: column; 
    align-items: center; 
  }
  
  .gallery-item img {
    width: 100%; 
    height: auto; 
    margin-bottom: 10px; 
  }
  
  .gallery-info {
    display: flex;
    flex-direction: column;
    align-items: center; 
  }

  .buy-now {
    background-color: #787878; 
    color: #fff; 
    border: none;
    padding: 10px 20px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 10px;
    transition: background-color 0.3s ease;
  }
  
  .buy-now:hover {
    background-color: #5a5a5a;
  }
  
.modal {
    display: none;
    position: fixed;
    z-index: 2;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgb(0, 0, 0);
    background-color: rgba(0, 0, 0, 0.9);
}

.modal-content {
    margin: auto;
    display: block;
    width: 80%;
    max-height: 700px;
    width: auto;
    padding-top: 50px;
}

.close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

.modal-caption {
    text-align: center;
    margin: 24px 0;
    color: white;
}

.contact-info {
    text-align: center;
    padding: 20px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.contact-info h2 {
    font-size: 2em;
    margin-bottom: 20px;
}

.contact-info p {
    margin: 10px 0;
}

.contact-info a {
    color: #3366cc;
    text-decoration: none;
}

.contact-info a:hover {
    text-decoration: underline;
}
  
#map {
    width: 100%;
    height: 500px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Blog Image and Text Styles */
.blog-image {
    display: block;
    margin: 0 auto;
    max-width: 400px;
    height: auto;
}

.blog-entry .cutline {
    text-align: center;
    font-style: italic;
    margin: 10px 0;
}

.blog-text {
    text-align: justify;
    margin: 20px auto;
    max-width: 800px;
    font-size: 1.1em;
    line-height: 1.6;
}

/* Blog Entry Styles */
.blog-entry {
    padding: 20px;
    margin: 0 auto;
    max-width: 800px;
}

/* Alternating Backgrounds */
.blog-entry:nth-child(odd) {
    background-color: #ffffff; /* White background for odd entries */
}

.blog-entry:nth-child(even) {
    background-color: #f7f7f7; /* Light gray background for even entries */
}

/* Additional Styling (Optional) */
.blog-entry h2 {
    text-align: center;
    font-size: 2em;
    margin-top: 20px;
    margin-bottom: 20px;
    color: #333; /* Text color */
}

.blog-entry p {
    font-size: 1.1em;
    line-height: 1.6;
    margin-bottom: 20px;
    text-align: justify;
}

h2 {
    text-align: center;
    font-size: 2em;
    margin-top: 40px;
    margin-bottom: 20px;
    color: #333; /* Optional: Customize color */
}

/* Mobile styles */
@media only screen and (max-width: 768px) {
    #siteLogo {
        max-width: 600px;
        width: 80%; 
        height: auto;
        display: block;
        margin-left: auto;
        margin-right: auto;
        margin-bottom: 0;
    }
    
    header {
        padding: 10px 20px;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .menu-icon {
        display: block;
    }

    nav ul {
        display: none;
        flex-direction: column;
        gap: 0;
        position: absolute;
        top: 75px;
        right: 0;
        background-color: #ffffff;
        width: 100%;
        text-align: center;
        font-weight: bold;
    }

    nav ul li {
        background-color: #fff;
        border: 1px solid #ccc;
    }

    .submenu {
        margin: 10px;
        display: none !important;
        width: auto; 
        position: static;
        border: none; 
    }

    .submenu li {
        border: none !important; 
        border-bottom: 1px solid #000 !important;
    }
    
    .submenu-toggle {
        display: inline-block;
        margin-left: 10px;
        transition: transform 0.3s ease; /* Smooth transition for rotation */
    }

    .has-submenu.submenu-visible .submenu-toggle {
        transform: rotate(45deg); /* Rotate 45 degrees */
    }

    .has-submenu.submenu-visible .submenu {
        display: block !important;
    }

    #menuToggle {
        cursor: pointer;
    }

    #menuToggle.active div:nth-child(1) {
        transform: translateY(7px) rotateZ(45deg);
    }

    #menuToggle.active div:nth-child(2) {
        opacity: 0;
    }

    #menuToggle.active div:nth-child(3) {
        transform: translateY(-7px) rotateZ(-45deg);
    }

    #menuToggle.active + nav ul {
        display: flex;
    }

    #artists {
        width: 100%;
    }

    .artist-grid {
        grid-template-columns: 1fr; 
        justify-items: center;
        grid-gap: 10px;
    }

    footer {
        width: 100%;
        padding: 20px 10px;
    }

    .footer-logo img {
        max-width: 90%; 
    } 

    .footer-content {
        font-size: smaller;
    }

    .artist-details {
        flex-direction: column;
    }

    .artist-bio, .artist-photo {
        flex-basis: 100%; 
        padding: 10px; 
    }

    .artist-bio {
        max-height: none; 
    }

    #readMoreBtn {
        padding: 8px 16px; 
        font-size: 14px; 
    }

    .artist-photo img {
        margin-top: 10px; 
    }

    .artist-bio p {
        text-align: left; 
    }

    .artist-bio h2 {
        text-align: center;
        margin-top: 0;
        font-size: small;
    }

    .artist-profile h1, .artist-profile h2 {
        width: 100%;
        padding: 0px 0px; */
        margin: 0;
        text-align: center;
    }

    .gallery-grid {
        grid-template-columns: 1fr; /* One column on very small screens */
    }
    

  #popup {
    align-items: center;
  }

  #popup-inner {
    flex-direction: column;
    width: 95%;
    max-height: 90vh;
    height: 75vh; /* limit popup to half screen height */
    overflow: hidden;
  }

  #popup-left, #popup-right {
    width: 100%;
    height: 50%;
  }

  #popup-right {
    max-height: 50%;
  }

  #popup-right img {
    height: 100%;
    width: 100%;
    object-fit: cover;
  }

  .popup-logo {
    max-width: 60px;
    margin: 0 auto 0.25rem;
  }

  .popup-wordmark {
    max-width: 150px;
    margin: 0 auto 0.5rem;
  }

  .popup-content {
    padding: 0 1rem;
    gap: 0.75rem;
    justify-content: center;
  }

  #popup-left h2 {
    font-size: 20px;
    margin-top: 0.25rem;
  }

  #popup-left p {
    font-size: 14px;
    line-height: 1.4;
    margin: 0;
  }

  #popup-left input,
  #popup-left button {
    font-size: 14px;
    padding: 10px;
  }

  #submit-button {
    font-weight: bold;
  }

  
}