* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-gold: #d4af37;
  --secondary-gold: #b8941f;
  --dark-bg: #1a1a1a;
  --light-bg: #f8f8f8;
  --white: #ffffff;
  --black: #000000;
  --text-dark: #333333;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  --shadow-hover: 0 20px 40px rgba(0, 0, 0, 0.15);
  --transition: all 0.3s ease;
  --border-radius: 15px;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  overflow-x: hidden;
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(10px);
  z-index: 1000;
  padding: 1rem 0;
  transition: var(--transition);
}

.navbar.scrolled {
  background: rgba(0, 0, 0, 0.95);
  padding: 0.5rem 0;
}

/* Navigation Updates */
.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 1rem; /* Reduced from 2rem for better mobile spacing */
  position: relative;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  transition: var(--transition);
  gap: 1rem;
}

.logo-img {
  height: 50px;
  width: auto;
  transition: var(--transition);
}

.logo-text {
  color: var(--primary-gold);
  font-size: 1.3rem;
  font-weight: 600;
  transition: var(--transition);
  white-space: nowrap;
}

.navbar.scrolled .logo-img {
  height: 40px;
}

.navbar.scrolled .logo-text {
  font-size: 1.1rem;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 1.5rem;
  margin: 0;
}

.nav-links a {
  color: var(--primary-gold);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
  position: relative;
  padding: 0.5rem 0;
}

.nav-links a:hover {
  color: var(--white);
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-gold);
  transition: width 0.3s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

.mobile-menu {
  display: none;
  color: var(--primary-gold);
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 1001;
  padding: 0.5rem;
  border-radius: 8px;
  transition: var(--transition);
}

.mobile-menu:hover {
  background: rgba(212, 175, 55, 0.1);
}

.mobile-menu i {
  transition: transform 0.3s ease;
}

.mobile-menu.active i {
  transform: rotate(90deg);
}

.mobile-nav {
  display: none;
}

/* Hero Section */
.hero {
  height: 100vh;
  min-height: 600px; /* Ensure minimum height on smaller screens */
  background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.6)),
    url("assets/galerie/011.jpeg");
  background-size: cover;
  background-position: center;
  background-attachment: scroll; /* Changed from fixed for better mobile performance */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
}

.hero-content {
  color: var(--white);
  max-width: 800px;
  padding: 0 1rem; /* Reduced from 2rem */
  animation: fadeInUp 1s ease;
  margin-top: -80px; /* Offset for fixed navbar */
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin-bottom: 1rem;
  font-weight: 300;
  letter-spacing: 2px;
}

.hero p {
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  margin-bottom: 2rem;
  opacity: 0.9;
}

.cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: linear-gradient(
    135deg,
    var(--primary-gold),
    var(--secondary-gold)
  );
  color: var(--white);
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  transition: var(--transition);
  box-shadow: 0 10px 30px rgba(212, 175, 55, 0.3);
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(212, 175, 55, 0.4);
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem; /* Reduced from 2rem for better mobile spacing */
}

/* Section Updates */
.section {
  padding: 80px 0;
  background: var(--light-bg);
}

.section-title {
  text-align: center;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  color: var(--text-dark);
  margin-bottom: 2rem;
  position: relative;
  padding: 0 1rem;
}
.section-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 3px;
  background: linear-gradient(
    135deg,
    var(--primary-gold),
    var(--secondary-gold)
  );
}

/* About Section */
.about {
  background: var(--light-bg);
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem; /* Reduced from 4rem */
  align-items: center;
  margin-top: 2rem; /* Reduced from 3rem */
}

.about-text h3 {
  color: var(--primary-gold);
  font-size: clamp(1.3rem, 2.5vw, 1.6rem);
  margin-bottom: 1rem;
}

.about-text p {
  margin-bottom: 1.5rem;
  line-height: 1.8;
  font-size: clamp(0.95rem, 1.5vw, 1.1rem); /* Better readability */
}

.about-image {
  width: 100%;
  aspect-ratio: 4/3;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin: 0 auto; /* Center on smaller screens */
}
.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

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

/* Features */
.features {
  display: grid;
  grid-template-columns: repeat(
    auto-fit,
    minmax(250px, 1fr)
  ); /* Reduced from 280px */
  gap: 1.5rem; /* Reduced from 2rem */
  margin-top: 3rem; /* Reduced from 4rem */
}

.feature {
  background: var(--white);
  padding: 1.5rem; /* Reduced from 2rem */
  border-radius: var(--border-radius);
  text-align: center;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.feature:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-hover);
}

.feature i {
  font-size: 3rem;
  color: var(--primary-gold);
  margin-bottom: 1rem;
}

.feature h3 {
  color: var(--text-dark);
  margin-bottom: 1rem;
  font-size: clamp(1.1rem, 2vw, 1.3rem);
}

.feature p {
  line-height: 1.6;
  font-size: clamp(0.9rem, 1.2vw, 1rem);
}

/* Rooms Section */
.rooms {
  background: var(--light-bg);
  padding: 80px 0;
}
.rooms-header {
  text-align: center;
  margin-bottom: 2rem;
}

.rooms-header p {
  max-width: 600px;
  margin: 0 auto;
  color: var(--text-dark);
  opacity: 0.8;
}

.rooms-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.room-card {
  background: var(--white);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  max-width: 100%; /* Prevent overflow */
}

.room-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.room-image {
  aspect-ratio: 16/9;
  position: relative;
  overflow: hidden;
}

.room-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.room-card:hover .room-image img {
  transform: scale(1.05);
}

.room-info {
  padding: 1.5rem; /* Reduced from 2rem */
}

.room-info h3 {
  color: var(--primary-gold);
  margin-bottom: 1rem;
  font-size: clamp(1.2rem, 2vw, 1.5rem);
}

.room-info p {
  margin-bottom: 1.5rem;
  line-height: 1.6;
  font-size: clamp(0.9rem, 1.2vw, 1rem);
}
.room-features {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(
    auto-fit,
    minmax(150px, 1fr)
  ); /* More flexible */
  gap: 0.5rem;
}

.room-features li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0;
  font-size: clamp(0.85rem, 1vw, 0.95rem);
}

.room-features i {
  color: var(--primary-gold);
  font-size: 0.9rem;
}

/* Restaurant Section */
.restaurant {
  background: var(--light-bg);
  padding: 80px 0;
}

.restaurant-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  margin-top: 2rem;
}

.restaurant-text h3 {
  color: var(--primary-gold);
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  margin-bottom: 1.5rem;
}

.restaurant-text p {
  margin-bottom: 2rem;
  line-height: 1.8;
  font-size: clamp(0.95rem, 1.3vw, 1.1rem);
}

.restaurant-image {
  width: 100%;
  aspect-ratio: 4/3;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.restaurant-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

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

.restaurant-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem; /* Reduced from 2rem */
  margin-top: 1.5rem; /* Reduced from 2rem */
}

.restaurant-features .feature {
  background: var(--light-bg); /* Better contrast */
  padding: 1.5rem;
  border: 1px solid rgba(212, 175, 55, 0.1); /* Subtle border */
}
.restaurant-features .feature h4 {
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  margin-bottom: 0.5rem;
  color: var(--text-dark);
}

.restaurant-features .feature p {
  font-size: clamp(0.85rem, 1.1vw, 0.95rem);
  margin-bottom: 0;
}
.restaurant-features i {
  font-size: 2rem;
  color: var(--primary-gold);
  margin-bottom: 1rem;
}

/* Contact Section */
.contact {
  background: var(--dark-bg);
  padding: 80px 0;
  color: var(--white);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-top: 2rem;
}

.contact-info h3 {
  color: var(--primary-gold);
  font-size: clamp(1.3rem, 2vw, 1.5rem);
  margin-bottom: 1.5rem; /* Reduced from 2rem */
}

.contact-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1rem; /* Reduced from 1.5rem */
  padding: 1rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  transition: var(--transition);
}

.contact-item i {
  color: var(--primary-gold);
  font-size: 1.2rem;
  margin-right: 1rem;
  width: 20px;
  margin-top: 2px;
}

.contact-item p {
  font-size: clamp(0.9rem, 1.2vw, 1rem);
  line-height: 1.5;
}

.contact-form {
  background: rgba(255, 255, 255, 0.1);
  padding: 2rem;
  border-radius: var(--border-radius);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  max-width: 100%; /* Prevent overflow */
}

.form-group {
  margin-bottom: 1.2rem; /* Reduced from 1.5rem */
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--primary-gold);
  font-weight: 500;
  font-size: clamp(0.9rem, 1.1vw, 1rem);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  border-radius: 8px;
  transition: var(--transition);
  font-size: 1rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  border-radius: 8px;
  transition: var(--transition);
  font-size: clamp(0.9rem, 1.1vw, 1rem);
  box-sizing: border-box; /* Ensure proper sizing */
}

.form-group textarea {
  height: 100px; /* Reduced from 120px */
  resize: vertical;
  font-family: inherit;
}

.submit-btn {
  width: 100%;
  padding: 15px;
  background: linear-gradient(
    135deg,
    var(--primary-gold),
    var(--secondary-gold)
  );
  color: var(--white);
  border: none;
  border-radius: 8px;
  font-size: clamp(1rem, 1.2vw, 1.1rem);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  box-sizing: border-box;
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(212, 175, 55, 0.3);
}

/* Footer */
.footer {
  background: var(--black);
  color: var(--white);
  padding: 3rem 0;
  text-align: center;
}

.footer p {
  margin-bottom: 1rem;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.social-links a {
  color: var(--primary-gold);
  font-size: 1.5rem;
  transition: var(--transition);
  padding: 0.5rem;
  border-radius: 50%;
  background: rgba(212, 175, 55, 0.1);
}

.social-links a:hover {
  color: var(--white);
  background: var(--primary-gold);
  transform: translateY(-3px);
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.98);
    backdrop-filter: blur(10px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem 0;
    z-index: 999;
    opacity: 0;
    transform: translateY(-20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
  }

  .nav-links.active {
    display: flex;
    opacity: 1;
    transform: translateY(0);
  }

  .nav-links li {
    margin: 1rem 0;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
  }

  .nav-links.active li {
    opacity: 1;
    transform: translateY(0);
  }

  .nav-links li:nth-child(1) {
    transition-delay: 0.1s;
  }
  .nav-links li:nth-child(2) {
    transition-delay: 0.2s;
  }
  .nav-links li:nth-child(3) {
    transition-delay: 0.3s;
  }
  .nav-links li:nth-child(4) {
    transition-delay: 0.4s;
  }
  .nav-links li:nth-child(5) {
    transition-delay: 0.5s;
  }
  .nav-links li:nth-child(6) {
    transition-delay: 0.6s;
  }

  .nav-links a {
    font-size: 1.5rem;
    padding: 0.8rem 1.5rem;
    display: block;
    position: relative;
    color: var(--white);
    transition: var(--transition);
  }

  .nav-links a::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 0;
    height: 2px;
    background: var(--primary-gold);
    transition: width 0.3s ease;
    transform: translateY(-50%);
  }

  .nav-links a:hover {
    color: var(--primary-gold);
    transform: translateX(10px);
  }

  .nav-links a:hover::before {
    width: 20px;
  }

  .mobile-menu {
    display: block;
  }

  .hero {
    min-height: 70vh; /* Reduced height on mobile */
    background-attachment: scroll;
  }

  .hero h1 {
    font-size: 2rem;
    line-height: 1.2;
  }

  .hero p {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }

  .hero-content {
    padding: 0 1rem;
    margin-top: -60px;
  }

  .about-content,
  .restaurant-content,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .section {
    padding: 60px 0;
  }

  .container {
    padding: 0 1rem;
  }

  .section-title {
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
  }

  .features {
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-top: 2rem;
  }

  .feature {
    padding: 1.2rem;
  }

  .rooms-grid {
    grid-template-columns: 1fr;
  }

  .restaurant-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .restaurant-image {
    order: -1;
  }

  .restaurant-features {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .contact-form {
    padding: 1.5rem;
  }

  .nav-container {
    padding: 0 1rem;
  }

  .logo-img {
    height: 40px;
  }

  .logo-text {
    font-size: 1.1rem;
  }

  .navbar.scrolled .logo-img {
    height: 35px;
  }

  .navbar.scrolled .logo-text {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .hero {
    min-height: 60vh;
  }

  .hero h1 {
    font-size: 1.8rem;
  }

  .hero p {
    font-size: 0.95rem;
  }

  .hero-content {
    margin-top: -40px;
  }

  .cta-button {
    padding: 12px 25px;
    font-size: 0.9rem;
  }

  .section {
    padding: 40px 0;
  }

  .section-title {
    font-size: 1.6rem;
    margin-bottom: 1rem;
  }

  .features {
    gap: 1rem;
  }

  .feature {
    padding: 1rem;
  }

  .feature i {
    font-size: 2rem;
  }

  .contact-form {
    padding: 1rem;
  }

  .form-group {
    margin-bottom: 1rem;
  }

  .form-group input,
  .form-group textarea {
    padding: 10px;
    font-size: 0.9rem;
  }

  .submit-btn {
    padding: 12px;
    font-size: 1rem;
  }

  .about-text,
  .restaurant-text {
    text-align: left;
  }

  .about-image,
  .restaurant-image {
    margin: 1rem 0;
  }

  .room-info {
    padding: 1rem;
  }

  .room-features {
    grid-template-columns: 1fr;
  }

  .contact-item {
    padding: 0.8rem;
  }

  .logo-img {
    height: 35px;
  }

  .logo-text {
    font-size: 1rem;
  }

  .navbar.scrolled .logo-img {
    height: 30px;
  }

  .navbar.scrolled .logo-text {
    font-size: 0.9rem;
  }
}

/* Extra small screens */
@media (max-width: 360px) {
  .container {
    padding: 0 0.8rem;
  }

  .nav-container {
    padding: 0 0.8rem;
  }

  .hero-content {
    padding: 0 0.8rem;
  }

  .section {
    padding: 30px 0;
  }

  .feature {
    padding: 0.8rem;
  }

  .contact-form {
    padding: 0.8rem;
  }

  .room-info {
    padding: 0.8rem;
  }
}
/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Focus styles for keyboard navigation */
.cta-button:focus,
.submit-btn:focus,
.nav-links a:focus,
.mobile-nav a:focus {
  outline: 2px solid var(--primary-gold);
  outline-offset: 2px;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: 2px solid var(--primary-gold);
  outline-offset: 1px;
}

/* Gallery Page Specific Styles */
.gallery-header {
  height: 50vh;
  min-height: 400px;
  background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
    url("assets/galerie/011.jpeg");
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
  margin-top: 80px;
  position: relative;
}

.gallery-header-content {
  max-width: 800px;
  padding: 0 1rem;
  animation: fadeInUp 1s ease;
}

.gallery-header h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin-bottom: 1rem;
  font-weight: 300;
  letter-spacing: 2px;
}

.gallery-header p {
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  opacity: 0.9;
}

.gallery-container {
  max-width: 1200px;
  margin: 4rem auto;
  padding: 0 2rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  padding: 1rem 0;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--border-radius);
  cursor: pointer;
  aspect-ratio: 4/3;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.gallery-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.gallery-item-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.8) 0%,
    rgba(0, 0, 0, 0) 100%
  );
  padding: 2rem 1rem 1rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-item-overlay {
  opacity: 1;
}

.gallery-item-overlay span {
  color: var(--white);
  font-size: 1.1rem;
  font-weight: 500;
  display: block;
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-item-overlay span {
  transform: translateY(0);
}

/* Gallery Page Responsive */
@media (max-width: 768px) {
  .gallery-header {
    height: 40vh;
    min-height: 300px;
    margin-top: 60px;
  }

  .gallery-header h1 {
    font-size: 2rem;
  }

  .gallery-header p {
    font-size: 1rem;
  }

  .gallery-container {
    margin: 2rem auto;
    padding: 0 1rem;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

@media (max-width: 480px) {
  .gallery-header {
    height: 30vh;
    min-height: 250px;
  }

  .gallery-header h1 {
    font-size: 1.8rem;
  }

  .gallery-container {
    margin: 1.5rem auto;
  }

  .gallery-grid {
    gap: 1rem;
  }

  .gallery-item-overlay {
    padding: 1.5rem 1rem 1rem;
  }

  .gallery-item-overlay span {
    font-size: 1rem;
  }
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  z-index: 1100;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal.show {
  opacity: 1;
}

.modal-content {
  max-width: 90%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.modal.show .modal-content {
  transform: scale(1);
}

.modal-caption {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--white);
  font-size: 1.2rem;
  text-align: center;
  width: 100%;
  padding: 1rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: var(--white);
  font-size: 2rem;
  font-weight: bold;
  cursor: pointer;
  transition: var(--transition);
  z-index: 1101;
}

.modal-close:hover {
  color: var(--primary-gold);
  transform: scale(1.1);
}

.modal-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  color: var(--white);
  border: none;
  padding: 1rem;
  cursor: pointer;
  font-size: 1.5rem;
  transition: var(--transition);
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-nav:hover {
  background: var(--primary-gold);
  color: var(--white);
}

.modal-prev {
  left: 20px;
}

.modal-next {
  right: 20px;
}

@media (max-width: 768px) {
  .modal-content {
    max-width: 95%;
  }

  .modal-caption {
    font-size: 1rem;
    bottom: 10px;
  }

  .modal-close {
    top: 10px;
    right: 20px;
    font-size: 1.5rem;
  }

  .modal-nav {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }

  .modal-prev {
    left: 10px;
  }

  .modal-next {
    right: 10px;
  }
}
