:root {
  --color-black: #000000;
  --color-white: #ffffff;
  --color-gray-light: #f5f5f5;
  --color-gray-hover-bg: #e5e4e2;
  --color-yellow: #ffcc00;
  --color-alert-success-bg: #d4edda;
  --color-alert-success-text: #155724;
  --color-alert-danger-bg: #f8d7da;
  --color-alert-danger-text: #721c24;
  --btn-border-radius: 0.3125rem; /* 5px */
  --btn-transition: all 0.3s ease;
  --box-shadow-light: 0 4px 8px rgba(0, 0, 0, 0.1);
  --box-shadow-hover: 0 6px 12px rgba(0, 0, 0, 0.2);
  --box-shadow-focus: 0 0 5px rgba(0, 0, 0, 0.3);
}

body {
  background-color: var(--color-white);
}

.bg-primary {
  background-color: var(--color-white);
}

.nav-link.active {
  font-weight: bold;
}

.nav-link:focus {
  outline: 2px solid var(--color-black);
  outline-offset: 0.125rem; /* 2px */
}

/* Add visible focus only for keyboard navigation */
.btn-custom:focus-visible {
  outline: 3px solid var(--color-yellow);
  outline-offset: 3px;
}

a:focus-visible {
  outline: 3px solid var(--color-yellow);
  outline-offset: 3px;
}

header {
  padding-top: 0;
}

#artCarousel {
  margin-top: 0;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  background-color: var(--color-black);
}

@media (max-width: 768px) {
  #artCarousel img {
    height: 50vh; /* removed !important */
  }
}

.card {
  transition: var(--btn-transition);
}

.card:hover {
  transform: translateY(-0.625rem); /* 10px */
  box-shadow: var(--box-shadow-light);
}

.social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.125rem; /* 50px */
  height: 3.125rem; /* 50px */
  background-color: var(--color-white);
  color: var(--color-black);
  border-radius: 50%;
  text-decoration: none;
  margin: 0 0.625rem; /* 10px */
  transition: background 0.3s, transform 0.2s, color 0.3s;
  border: 2px solid var(--color-black);
}

.social-icons a:hover {
  background-color: var(--color-gray-hover-bg);
  color: var(--color-black); /* changed from white for contrast */
  transform: scale(1.1);
}

.btn-custom {
  background-color: var(--color-white);
  color: var(--color-black);
  border: 2px solid var(--color-black);
  box-shadow: var(--box-shadow-light);
  transition: var(--btn-transition);
  border-radius: var(--btn-border-radius);
}

.btn-custom:hover {
  background-color: var(--color-gray-light);
  color: var(--color-black);
  border-color: #aaa;
  box-shadow: var(--box-shadow-hover);
}

.btn-custom:focus,
.btn-custom:active {
  box-shadow: var(--box-shadow-focus);
  outline: none; /* Handled by focus-visible */
}

.card.bg-dark:hover {
  background-color: #343a40;
  color: var(--color-white);
}

.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: var(--color-white);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Newsletter form messages */
#formMessage {
  font-weight: bold;
  padding: 0.625rem; /* 10px */
  border-radius: var(--btn-border-radius);
  margin-top: 0.625rem; /* 10px */
  animation: fadeIn 0.5s ease-in-out;
}

.alert {
  font-size: 1rem;
  padding: 0.9375rem; /* 15px */
  border-radius: var(--btn-border-radius);
}

.alert-success {
  background-color: var(--color-alert-success-bg);
  color: var(--color-alert-success-text);
}

.alert-danger {
  background-color: var(--color-alert-danger-bg);
  color: var(--color-alert-danger-text);
}

/* Animation for smooth appearance */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

#acceptCookies {
  background-color: var(--color-yellow);
  color: var(--color-black);
  padding: 0.3125rem 0.625rem; /* 5px 10px */
  border: none;
  cursor: pointer;
}

footer {
  background-color: var(--color-white);
  padding-top: 0;
  padding-bottom: 1.25rem; /* 20px */
}

footer .social-icons {
  margin-bottom: 3.125rem; /* 50px */
}

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

footer p {
  margin-bottom: 0.625rem; /* 10px */
  font-size: 0.95rem;
  color: #333;
}

.cookie-consent {
  opacity: 0;
  transition: opacity 1s ease-in-out;
  pointer-events: none;
}

.cookie-consent.visible {
  opacity: 1;
  pointer-events: auto;
}

#loading-spinner {
  display: none;
}

#loading-spinner.show {
  display: block;
}

/* About Page Styles */
.about-section {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
  margin: 60px 0;
  flex-wrap: nowrap;
}

.about-image {
  flex: 1 1 50%;
  max-width: 600px; /* Optional max width */
}

.about-image img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  transition: transform 0.3s ease;
}

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

.about-info {
  flex: 1 1 50%;
  padding: 20px 0;
}

.about-info h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}

.about-info p {
  font-size: 1rem;
  line-height: 1.6;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .about-section {
    flex-direction: column;
    gap: 20px;
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  }

  .about-image,
  .about-info {
    max-width: 100%;
    padding: 0;
  }
}
.visually-hidden-focusable {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
  z-index: -1;
}

.visually-hidden-focusable:focus,
.visually-hidden-focusable:active {
  position: static;
  width: auto;
  height: auto;
  overflow: visible;
  z-index: 1000;
}
/* Artwork Detail Page Styles */

.artwork-detail img {
  border-radius: 10px;
  transition: transform 0.3s ease;
  cursor: pointer;
}

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

.back-link a {
  text-decoration: none;
  color: var(--color-black);
  border-bottom: 1px solid var(--color-black);
  padding-bottom: 2px;
  transition: color 0.2s ease;
}

.back-link a:hover {
  color: #555;
}