@import url('https://fonts.googleapis.com/css2?family=Major+Mono+Display:wght@400;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Dancing+Script:wght@400;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Jura:wght@100;200&display=swap');

/* Reset and base styles */
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: 'Segoe UI', Arial, sans-serif;
  color: #e0e0e0;
  background: #18181a;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}
#dynamic-bg {
  position: fixed;
  top: 0;   left: 0;   width: 100vw;   height: 100vh;
  z-index: -2;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  filter: blur(3px) brightness(0.1);
  opacity: 1;
  transition: background-image 1.5s cubic-bezier(0.4,0,0.4,1), transform 1s cubic-bezier(0.4,1,0.4,1);
  will-change: background-image, transform !important;
  transform: translateZ(0);
}
.background-blur {
  display: none;
}
header {
  width: 100%;
  padding: 3rem 0 2rem 0;
  background: rgba(20,20,22,0.45);
  font-family: Major Mono Display;
  font-size: 2.5rem;
  letter-spacing: 0.1em;
  font-weight: 400;
  box-shadow: 0 2px 16px rgba(0,0,0,0.3);
  margin-bottom: 2rem;
  transition: background 0.5s;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 1.2rem;
  position: relative;
}
.header-logo {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.13);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.5;
  overflow: hidden;
  margin-right: 0.2rem;
  position: static;
  top: auto; left: auto; transform: none;
}
.header-logo img {
  width: 95%;
  height: 95%;
  opacity: 1;
  object-fit: cover;
  filter: brightness(1.5);
  border-radius: 50%; /* Ensures the image is displayed in a circle */
}
header h1 {
  margin: 0;
  color: #e0e0e0;
  opacity: 0.45;
  font-size: 2.5rem;
  font-weight: 200;
  letter-spacing: 0.3em;
}
main {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}
#albums-section h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  text-align: left;
}
#albums-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}
.album-thumb {
  background: rgba(30,30,32,0.7);
  border-radius: 0px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0,0,0,0.4);
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.4,0,0.2,1), box-shadow 0.2s cubic-bezier(0.4,0,0.2,1);
  position: relative;
  will-change: transform !important;
  transform: translateZ(0);
}
.album-thumb:hover {
  transform: translateY(-6px) scale(1.03) translateZ(0);
  box-shadow: 0 8px 32px rgba(0,0,0,0.6);
}
.album-thumb img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
  filter: grayscale(0.2) brightness(0.5);
  transition: filter 0.3s cubic-bezier(0.4,0,0.2,1);
  will-change: filter !important;
}
.album-thumb:hover img {
  filter: grayscale(0) brightness(1);
}
.album-title {
  padding: 0.5rem;
  font-size: 0.8rem;
  font-weight: 100;
  font-family: Major Mono Display;
  color: #e0e0e0;
  opacity: 0.6;
  text-align: center;
  background: rgba(20,20,22,0.2);
}
.photographer-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between; /* Space between elements */
  background: rgba(24, 24, 26, 0.6);
  border-radius: 0px;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.3);
  padding: 2rem 1rem;
  margin-bottom: 2rem;
}
.equipment {
  flex: 1 1 220px;
  min-width: 220px;
  max-width: 720px;
  margin: 1rem;
  text-align: right; /* Align text to the right */
}
.bio {
  flex: 1 1 220px;
  min-width: 220px;
  max-width: 720px;
  margin: 1rem;
  text-align: left; /* Align text to the right */
}
.portrait {
  flex: 0 1 120px;
  flex-direction: column;
  display: flex;
  justify-content: center; /* Center the portrait */
  align-items: center;
  margin: 0.2rem;
}
.portrait img {
  width: 180px;
  height: 180px;
  object-fit: cover;
  filter: grayscale(0.2) brightness(0.5);
  border-radius: 50%;
  border: 6px solid #222;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.5);
}

/* Slimmer and darker fonts */
.photographer-container,
.bio,
.portrait {
  font-family: Jura, 'Segoe UI', Arial, sans-serif;
  font-weight: 200; /* Slimmer font */
  color: #b0b0b0; /* Darker font color */
}
.equipment{
  font-family: Jura, 'Segoe UI', Arial, sans-serif;
  font-weight: 200; /* Slimmer font */
  color: #b0b0b0; /* Darker font color */
  line-height: 1.4;
}
.photographer-container hr {
  filter: brightness(0.5)
}
#lightbox {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background: rgba(10,10,12,0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  opacity: 1;
  pointer-events: auto;
  transition: opacity 0.5s cubic-bezier(0.4,0,0.2,1);
  will-change: opacity !important;
}
#lightbox.hidden {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s cubic-bezier(0.4,0,0.2,1);
}
.lightbox-content {
  background: rgba(35,35,38,0.2);
  border-radius: 0;
  padding: 3rem 2rem 2rem 2rem;
  box-shadow: 0 8px 32px rgba(0,0,0,0.7);
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: relative;
  opacity: 1;
  transform: scale(1) translateZ(0);
  transition: opacity 0.8s cubic-bezier(0.4,0,0.2,1), transform 0.8s cubic-bezier(0.4,0,0.2,1), width 0.5s cubic-bezier(0.4,0,0.2,1), height 0.5s cubic-bezier(0.4,0,0.2,1);
  backdrop-filter: blur(4px) saturate(120%);
  animation: lightboxFadeIn 0.8s cubic-bezier(0.4,0,0.2,1);
  border: 1.5px solid rgba(255,255,255,0.08);
  justify-content: flex-start;
  will-change: transform, opacity, width, height !important;
}
#lightbox.hidden .lightbox-content {
  opacity: 0;
  transform: scale(0.96) translateZ(0);
  pointer-events: none;
}
@keyframes lightboxFadeIn {
  from { opacity: 0; transform: scale(0.96) translateZ(0); }
  to { opacity: 1; transform: scale(1) translateZ(0); }
}

.lightbox-img-exif-container {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 2.5rem;
  width: 100%;
}
.lightbox-thumbs {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-height: 60vh;
  min-width: 80px;
  max-width: 90px;
  overflow-y: auto;
  padding: 0.5rem 0.2rem;
  position: relative;
  scroll-behavior: smooth;
  will-change: scroll-position !important;
}
/* Chrome, Safari, Opera */
.lightbox-thumbs::-webkit-scrollbar {
  display: none;
}
/* Firefox */
.lightbox-thumbs {
  scrollbar-width: none;
}
/* IE, Edge) */
.lightbox-thumbs {
  -ms-overflow-style: none;
}

.lightbox-thumb {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 6px;
  border: 2px solid transparent;
  cursor: pointer;
  opacity: 0.7;
  transition: border 0.2s cubic-bezier(0.4,0,0.2,1), opacity 0.2s cubic-bezier(0.4,0,0.2,1), filter 0.5s cubic-bezier(0.4,0,0.2,1);
  background: #222;
  filter: brightness(0.5) saturate(0.5);
  will-change: filter, opacity !important;
  transform: translateZ(0);
}
.lightbox-thumb:hover,
.lightbox-thumb.selected {
  filter: brightness(1) saturate(1);
  opacity: 1;
  transition: filter 0.5s cubic-bezier(0.4,0,0.2,1), opacity 0.2s cubic-bezier(0.4,0,0.2,1);
}
.lightbox-thumbs::before,
.lightbox-thumbs::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  height: 18px;
  pointer-events: none;
  z-index: 2;
}
.lightbox-thumbs::before {
  top: 0;
  background: linear-gradient(to bottom, rgba(35,35,38,0.7), rgba(35,35,38,0));
}
.lightbox-thumbs::after {
  bottom: 0;
  background: linear-gradient(to top, rgba(35,35,38,0.7), rgba(35,35,38,0));
}
#lightbox-img-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  position: relative;
}

#lightbox-img {
  display: block;
  max-width: 50vw;
  max-height: 60vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 0;
  margin-bottom: 1rem;
  box-shadow: 0 2px 16px rgba(0,0,0,0.5);
  background: rgba(0,0,0,0.12);
  border: 1.5px solid rgba(255,255,255,0.06);
  padding: 0.5rem;
  opacity: 1;
  filter: none;
  transition: opacity 0.5s cubic-bezier(0.4,0,0.2,1);
  will-change: opacity !important;
  transform: translateZ(0);
}

/* Better image sizing for narrow windows */
@media (max-width: 900px) {
  #lightbox-img {
    max-width: 70vw;
    max-height: 50vh;
  }
}

@media (max-width: 1000px) {
  #lightbox-img {
    max-width: 60vw;
    max-height: 55vh;
  }
}
#lightbox-img.fading {
  opacity: 0;
  transition: opacity 0.5s cubic-bezier(0.4,0,0.2,1);
}
#exif-info {
  min-width: 180px;
  max-width: 290px;
  font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
  font-size: 0.8rem;
  color: #b8b8b8;
  margin-top: 0.5rem;
  margin-left: 0.3rem;
  word-break: keep-all
  line-height: 1.6;
  background: rgba(0,0,0,0.10);
  border-radius: 8px;
  padding: 0.7rem 1rem;
  box-shadow: 0 1px 6px rgba(0,0,0,0.10);
  font-weight: 100;
  letter-spacing: 0.01em;
  opacity: 0.6;
}
.exif-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.2em;
}
.exif-label {
  color: #888;
  font-weight: 400;
  font-size: 0.98em;
  margin-right: 0.5em;
}
.lightbox-caption {
  color: #e0e0e0;
  text-align: center;
  margin-bottom: 1rem;
  width: 100%;
}

.photo-counter {
  margin-top: 0.5rem;
  font-size: 0.8rem;
  color: #aaa;
  font-weight: 300;
}

.keyboard-hints {
  margin-top: 0.3rem;
  font-size: 0.7rem;
  color: #666;
  font-style: italic;
}
.lightbox-controls {
  display: flex;
  width: 100%;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: auto;
  margin-bottom: 0;
  align-self: stretch;
}
.lightbox-controls button, .close-btn {
  background: #000;
  color: #888;
  border: none;
  border-radius: 4px;
  padding: 0.5rem 1.2rem;
  font-size: 1rem;
  font-family: 'Segoe UI', Arial, sans-serif;
  font-weight: 300;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background 0.2s cubic-bezier(0.4,0,0.2,1), color 0.2s cubic-bezier(0.4,0,0.2,1);
  box-shadow: none;
  opacity: 0.7;
  will-change: background, color, opacity !important;
}
.lightbox-controls button:hover, .close-btn:hover {
  background: #111;
  color: #bbb;
  opacity: 1;
}
.close-btn {
  position: absolute;
  top: 0.7rem; right: 0.7rem;
  font-size: 1.3rem;
  line-height: 1;
  padding: 0.1rem 0.5rem;
  background: none;
  color: #888;
  border: none;
  border-radius: 0;
  opacity: 0.5;
  box-shadow: none;
  transition: color 0.2s cubic-bezier(0.4,0,0.2,1), opacity 0.2s cubic-bezier(0.4,0,0.2,1);
  font-weight: 300;
  z-index: 2;
}
.close-btn:hover {
  color: #ccc;
  opacity: 0.9;
}
#news-section {
  padding: 2rem 1rem;
  background: rgba(24, 24, 26, 0.6);
  margin-bottom: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.3);
}

#news-container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.news-item {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 1.5rem;
}

.news-item img {
  flex: 0 0 100px;
  max-width: 100px;
  max-height: 80px;
  object-fit: cover;
  height: auto;
  filter: brightness(0.8) grayscale(0.2);
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.news-item .news-content {
  flex: 1;
}

.news-item h3 {
  margin: 0 0 0.5rem 0;
  font-family: Major Mono Display;
  font-size: 1.2rem;
  color: #e0e0e0;
}

.news-item p {
  margin: 0;
  filter: brightness(0.8) grayscale(0.2);
  color: #b0b0b0;
  line-height: 1.5;
}
@media (max-width: 900px) {
  .photographer-container { flex-direction: column; }
  .portrait img { width: 140px; height: 140px; }
}

@media (max-width: 768px) {
  .lightbox-img-exif-container {
    flex-direction: column;
    gap: 1rem;
    align-items: center;
  }
  
  #lightbox-img-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
  }
  
  .lightbox-thumbs {
    display: flex;
    flex-direction: row;
    max-height: 80px;
    min-width: auto;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0.5rem;
    order: 2;
  }
  
  .lightbox-thumb {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
  }
  
  #lightbox-img-wrapper {
    order: 1;
  }
  
  #exif-info {
    order: 3;
    min-width: auto;
    max-width: 100%;
  }
}

@media (max-width: 600px) {
  header { font-size: 1.5rem; padding: 2rem 0 1rem 0; }
  
  .lightbox-content {
    padding: 1rem;
    max-width: 95vw;
    max-height: 95vh;
  }
  
  #lightbox-img { 
    max-width: 85vw; 
    max-height: 45vh; 
  }
  
  .lightbox-controls button {
    padding: 0.8rem 1.5rem;
    font-size: 1.1rem;
    min-height: 44px;
  }
  
  .lightbox-thumbs {
    max-height: 70px;
    padding: 0.3rem;
  }
  
  .lightbox-thumb {
    width: 50px;
    height: 50px;
  }
  
  .lightbox-img-exif-container {
    gap: 0.8rem;
  }
}

@media (max-width: 480px) {
  .lightbox-content {
    padding: 0.5rem;
    max-width: 98vw;
    max-height: 98vh;
  }
  
  #lightbox-img { 
    max-width: 90vw; 
    max-height: 40vh; 
  }
  
  .lightbox-thumbs {
    max-height: 60px;
    padding: 0.2rem;
  }
  
  .lightbox-thumb {
    width: 45px;
    height: 45px;
  }
  
  .lightbox-controls {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .lightbox-controls button {
    width: 100%;
    padding: 0.6rem 1rem;
    font-size: 1rem;
  }
  
  .lightbox-caption {
    padding: 0.5rem;
  }
  
  .photo-counter {
    font-size: 0.7rem;
  }
  
  .keyboard-hints {
    font-size: 0.6rem;
  }
}

#lightbox-img {
  cursor: pointer;
  transition: opacity 0.3s ease-in-out;
  user-select: none;
}

#lightbox-img-wrapper {
  overflow: hidden;
}

#loading-spinner {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  display: none;
}

#loading-spinner:not(.hidden) {
  display: block;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-top: 3px solid #fff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.lightbox-content.fullscreen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  max-width: 100vw;
  max-height: 100vh;
  padding: 0;
  margin: 0;
  border-radius: 0;
  background: rgba(10,10,12,0.95);
  z-index: 101;
}

.lightbox-content.fullscreen .lightbox-img-exif-container {
  flex-direction: column;
  height: 100vh;
  width: 100vw;
  justify-content: center;
  align-items: center;
  gap: 0;
}

.lightbox-content.fullscreen .lightbox-thumbs {
  display: none;
}

.lightbox-content.fullscreen #exif-info {
  display: none;
}

.lightbox-content.fullscreen .close-btn {
  display: none;
}

.lightbox-content.fullscreen .lightbox-caption {
  display: none;
}

.lightbox-content.fullscreen .lightbox-controls {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0,0,0,0.7);
  margin: 0;
  padding: 0.8rem;
  backdrop-filter: blur(10px);
  z-index: 10;
}

.lightbox-content.fullscreen #lightbox-img {
  max-width: 100vw;
  max-height: 100vh;
  width: 100vw;
  height: 100vh;
  object-fit: contain;
  margin: 0;
  padding: 0;
}

.lightbox-content.fullscreen #lightbox-img-wrapper {
  width: 100vw;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}

.lightbox-content.fullscreen.ui-hidden .lightbox-caption,
.lightbox-content.fullscreen.ui-hidden .lightbox-controls {
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}

.lightbox-content.fullscreen .lightbox-caption,
.lightbox-content.fullscreen .lightbox-controls {
  opacity: 1;
  transition: opacity 0.3s ease-in-out;
}

@media (max-width: 768px) {
  .lightbox-content.fullscreen .lightbox-caption {
    display: none;
  }
  
  .lightbox-content.fullscreen .lightbox-controls {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0,0,0,0.8);
    margin: 0;
    padding: 0.8rem;
    z-index: 10;
  }
}

@media (max-width: 480px) {
  .lightbox-content.fullscreen .lightbox-caption {
    display: none;
  }
  
  .lightbox-content.fullscreen .lightbox-controls {
    padding: 0.6rem;
    z-index: 10;
  }
  
  .lightbox-content.fullscreen .lightbox-controls button {
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
  }
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
  justify-content: left; /* Center the icons */
}

.social-icon img {
  width: 32px;
  height: 32px;
  object-fit: cover;
  filter: grayscale(0.2) brightness(0.5);
  border-radius: 50%;
  border: 6px solid #222;
  transition: transform 0.3s ease;
}

.social-icon img:hover {
  transform: scale(1.5); /* Slight zoom effect on hover */
}

#cookie-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(24, 24, 26, 0.9);
  color: #e0e0e0;
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  font-size: 0.9rem;
}

#cookie-bar p {
  margin: 0;
}

#cookie-bar a {
  color: #4caf50;
  text-decoration: underline;
}

#cookie-bar a:hover {
  text-decoration: none;
}

#cookie-bar button {
  background: #4caf50;
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 0.5rem 1rem;
  cursor: pointer;
  font-size: 0.9rem;
  transition: background 0.3s ease;
}

#cookie-bar button:hover {
  background: #45a049;
}