/* Gallery Styles - Separate Stylesheet */
:root {
  --gallery-text: #efefef;
  --gallery-icon: #efefef;
  --gallery-bg: #121212;
  --gallery-backdrop: rgba(2, 2, 2, 0.8)
}
/* Gallery Overlay */
.gallery-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: var(--gallery-backdrop);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  box-sizing: border-box;
}

.gallery-overlay.active {
  display: flex;
}

/* Desktop Layout */
.gallery-container {
  position: relative;
  width: 80vw;
  max-width: none;
  height: 80vh;
  display: flex;
  flex-direction: column;
  background: var(--gallery-bg);
  border-radius: 12px;
  overflow: hidden;
  box-sizing: border-box;
}

.gallery-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 30px;
  background: var(--gallery-bg);
  flex-shrink: 0;
  box-sizing: border-box;
}

.gallery-title {
  color: var(--gallery-text);
  font-size: 1.2rem;
  font-weight: 300;
  margin: 0;
  font-family: raleway, sans-serif;
}

.gallery-close {
  background: none;
  border: none;
  color: var(--gallery-text);
  cursor: pointer;
  padding: 8px;
  transition: opacity 0.3s ease;
  user-select: none;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

.gallery-close:hover {
  opacity: 0.7;
}

.gallery-close:focus {
  outline: none;
}

.gallery-close:active {
  background: none;
  opacity: 0.5;
}

.gallery-main {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  min-height: 0;
  padding: 20px;
  box-sizing: border-box;
  background: var(--gallery-bg);
}

.gallery-image {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  display: block;
  transition: opacity 0.3s ease;
}

/* Desktop Navigation Bar */
.gallery-nav-desktop {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 30px;
  background: var(--gallery-bg);
  flex-shrink: 0;
  box-sizing: border-box;
}

.gallery-nav {
  background: none;
  border: none;
  color: var(--gallery-text);
  padding: 8px;
  cursor: pointer;
  transition: opacity 0.3s ease;
  user-select: none;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

.gallery-nav:hover {
  opacity: 0.7;
}

.gallery-nav:focus {
  outline: none;
}

.gallery-nav:active {
  background: none !important;
  opacity: 0.5;
}

.gallery-nav:focus-visible {
  outline: none;
}

.gallery-nav::-moz-focus-inner {
  border: 0;
}

.nav-icon-container {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
}

.nav-icon {
  width: 20px;
  height: 20px;
  fill: var(--gallery-icon);
}

.next-icon {
  transform: scaleX(-1);
}

.gallery-counter {
  color: var(--gallery-text);
  font-size: 0.9rem;
  font-family: raleway, sans-serif;
  font-weight: 300;
}

/* Mobile Layout */
@media (max-width: 768px) {
  .gallery-container {
    position: relative;
    width: 100vw;
    height: 100vh;
    max-width: none;
    border-radius: 0;
  }
  
  .gallery-header {
    padding: 15px 20px;
    position: relative;
  }
  
  .gallery-title {
    font-size: 1rem;
    max-width: 70%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  
  .gallery-close {
    font-size: 1.8rem;
    padding: 5px 8px;
    width: 36px;
    height: 36px;
  }
  
  .gallery-main {
    padding: 20px;
    padding-bottom: 100px; /* Space for bottom navigation */
  }
  
  .gallery-image {
    max-width: 100%;
    border-radius: 6px;
  }
}

/* Mobile Footer Navigation */
.gallery-footer {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--gallery-bg);
  padding: 20px;
  justify-content: space-between;
  align-items: center;
  z-index: 10002;
  box-sizing: border-box;
}

.gallery-nav-mobile {
  background: none;
  border: none;
  color: var(--gallery-text);
  padding: 8px;
  cursor: pointer;
  transition: opacity 0.3s ease;
  user-select: none;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

.gallery-nav-mobile:hover {
  opacity: 0.7;
}

.gallery-nav-mobile:focus {
  outline: none;
}

.gallery-nav-mobile:active {
  background: none !important;
  opacity: 0.5;
}

.gallery-nav-mobile:focus-visible {
  outline: none;
}

.gallery-nav-mobile::-moz-focus-inner {
  border: 0;
}



/* Show/Hide Elements Based on Screen Size */
.desktop-only {
  display: flex;
}

.mobile-only {
  display: none;
}

@media (max-width: 768px) {
  .desktop-only {
    display: none;
  }
  
  .mobile-only {
    display: flex;
  }
}

/* Responsive adjustments */
@media (min-width: 769px) and (max-width: 1024px) {
  .gallery-container {
    width: 70vw;
  }
  
  .nav-icon-container {
    width: 30px;
    height: 30px;
  }
  
  .nav-icon {
    width: 30px;
    height: 30px;
  }
}

@media (min-width: 1400px) {
  .gallery-container {
    width: 50vw;
    max-width: 1000px;
  }
} 