* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
}

.highlight {
  color: deepskyblue !important;
  font-weight: bold;
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
  background-color: #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  flex-wrap: wrap;
}

.logo {
  height: 60px;
  margin: 0 auto;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 15px;
  position: relative;
  width: 100%;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 10px;
  padding: 0;
}

.nav-links li {
  position: relative;
}

.nav-links li a {
  text-decoration: none;
  color: #333;
  font-weight: bold;
  padding: 8px;
  display: block;
  font-size: 0.9rem;
}

.nav-links li a:hover {
  color: #007bff;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #fff;
  border: 1px solid #ddd;
  list-style: none;
  padding: 0;
  min-width: 150px;
  z-index: 10;
}

.dropdown-menu li a {
  padding: 10px 15px;
  color: #333;
}

.dropdown-menu li a:hover {
  background-color: #f0f0f0;
  color: #007bff;
}

.nav-links li:hover .dropdown-menu {
  display: block;
}

/* Only gallery-specific styles, no resets or body styles */
.meg-gallery-section {
  padding: 40px 0;
  background-color: #f9fafb;
}

.meg-gallery-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.meg-gallery-title {
  font-size: 28px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 30px;
  color: #333;
}

/* Tabs */
.meg-gallery-tabs {
  display: flex;
  justify-content: center;
  margin-bottom: 30px;
}

.meg-gallery-tabs-list {
  display: flex;
  background-color: #e9ecef;
  border-radius: 6px;
  overflow: hidden;
}

.meg-gallery-tab {
  padding: 10px 30px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 16px;
  transition: background-color 0.3s;
}

.meg-gallery-tab:hover {
  background-color: #dee2e6;
}

.meg-gallery-tab.active {
  background-color: #fff;
}

/* Gallery Content */
.meg-gallery-content {
  display: none;
}

.meg-gallery-content.active {
  display: block;
}

.meg-gallery-header {
  text-align: center;
  margin-bottom: 25px;
}

.meg-gallery-name {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 10px;
  color: #333;
}

.meg-gallery-description {
  color: #6c757d;
  margin-bottom: 20px;
}

/* Grid View */
.meg-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

@media (max-width: 992px) {
  .meg-gallery-grid {
      grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .meg-gallery-grid {
      grid-template-columns: 1fr;
  }
}

.meg-gallery-grid-item {
  display: flex;
  flex-direction: column;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  background-color: white;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-decoration: none; /* Remove underline from links */
  color: inherit; /* Inherit text color */
}

.meg-gallery-grid-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.meg-gallery-item-content {
  padding: 15px;
  order: -1; /* This moves the content above the image */
}

.meg-gallery-item-title {
  font-size: 16px;
  font-weight: 600;
  color: #333;
}

.meg-gallery-grid-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

/* Lightbox */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-content {
  position: relative;
  width: 100%;
  height: 70vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

.lightbox-image {
  max-width: 90%;
  max-height: 70vh;
  object-fit: contain;
}

.lightbox-info {
  background-color: #fff;
  padding: 0.75rem;
  width: 90%;
  max-width: 800px;
}

.lightbox-title {
  font-size: 1.1rem;
  font-weight: 600;
}

.lightbox-artist {
  color: #666;
  font-size: 0.9rem;
}

.lightbox-counter {
  font-size: 0.8rem;
  color: #666;
  margin-top: 0.25rem;
}

/* Navigation buttons */
.nav-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(255, 255, 255, 0.5);
  border: none;
  border-radius: 50%;
  width: 35px;
  height: 35px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: background-color 0.3s ease;
  z-index: 1010;
}

.nav-button:hover {
  background-color: rgba(255, 255, 255, 0.8);
}

.prev-button {
  left: 0.5rem;
}

.next-button {
  right: 0.5rem;
}

.close-button {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background-color: rgba(255, 255, 255, 0.5);
  border: none;
  border-radius: 50%;
  width: 25px;
  height: 25px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: background-color 0.3s ease;
  z-index: 1010;
}

.close-button:hover {
  background-color: rgba(255, 255, 255, 0.8);
}

/* Aspect ratios */
.aspect-4-3 {
  aspect-ratio: 4 / 3;
}

.aspect-3-4 {
  aspect-ratio: 3 / 4;
}

.aspect-1-1 {
  aspect-ratio: 1 / 1;
}

.aspect-3-2 {
  aspect-ratio: 3 / 2;
}

.aspect-2-3 {
  aspect-ratio: 2 / 3;
}

/* Small devices (landscape phones) */
@media (min-width: 576px) {
  .container {
    padding: 1.5rem;
  }

  h1 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .image-title {
    font-size: 1rem;
  }

  .image-artist {
    font-size: 0.85rem;
  }

  .nav-button {
    width: 40px;
    height: 40px;
  }

  .prev-button {
    left: 1rem;
  }

  .next-button {
    right: 1rem;
  }

  .close-button {
    width: 30px;
    height: 30px;
    top: 1rem;
    right: 1rem;
  }
}

/* Medium devices (tablets) */
@media (min-width: 768px) {
  .navbar {
    flex-wrap: nowrap;
  }

  .logo {
    height: 75px;
    margin: 0;
  }

  .nav-links {
    width: auto;
    margin-top: 0;
    gap: 20px;
    justify-content: flex-end;
  }

  .nav-links li a {
    padding: 10px;
    font-size: 1rem;
  }

  .container {
    padding: 2rem;
  }

  h1 {
    font-size: 2.25rem;
  }

  .lightbox-content {
    height: 75vh;
  }

  .lightbox-image {
    max-height: 75vh;
  }

  .lightbox-info {
    padding: 1rem;
  }

  .lightbox-title {
    font-size: 1.25rem;
  }

  .image-info {
    padding: 1rem;
  }
}

/* Large devices (desktops) */
@media (min-width: 992px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }

  .lightbox-content {
    height: 80vh;
  }

  .lightbox-image {
    max-height: 80vh;
  }

  .nav-button {
    width: 45px;
    height: 45px;
  }
}

/* Extra large devices */
@media (min-width: 1200px) {
  .container {
    padding: 2.5rem;
  }

  .gallery-grid {
    gap: 2rem;
  }
}

/* Footer styles */

.footer {
  width: 100%;
  background-color: #000;
  color: #fff;
  border-top: 1px solid #333;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 16px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.footer-section {
  margin-bottom: 16px;
}

.footer-heading {
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 16px;
  color: #fff;
}

.footer-text {
  font-size: 14px;
  color: #ccc;
}

.social-links {
  display: flex;
  gap: 16px;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  transition: background-color 0.2s;
}

.social-link:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.social-icon {
  width: 20px;
  height: 20px;
  color: #fff;
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid #333;
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}

.copyright {
  font-size: 14px;
  color: #aaa;
  margin-bottom: 16px;
}

@media (min-width: 768px) {
  .copyright {
    margin-bottom: 0;
  }
}

.footer-policies {
  display: flex;
  gap: 16px;
}

.footer-policies a {
  font-size: 14px;
  color: #aaa;
  text-decoration: none;
}

.footer-policies a:hover {
  text-decoration: underline;
  color: #fff;
}

