﻿/* Hamburger button */
.slideshow-hamburger {
  position: fixed;
  top: 80px;
  left: 10px;
  font-size: 1.8rem;
  color: #fff;
  background: rgba(0,0,0,0.6);
  border: none;
  cursor: pointer;
  width: 48px;          /* fixed width */
  height: 48px;         /* fixed height */
  border-radius: 50%;   /* makes it perfectly round */
  display: flex;        /* centers the icon */
  align-items: center;
  justify-content: center;
  z-index: 1100;
  transition: opacity 0.3s ease, background 0.3s ease;
}

.slideshow-hamburger:hover {
  background: rgba(0,0,0,0.8);
}

.slideshow-hamburger.hidden {
  opacity: 0;
  pointer-events: none;
}

/* Slideshow controls */
.slideshow-controls {
  position: fixed;
  top: 70px;
  left: 10px;
  width: 600px;
  display: none;
  justify-content: center;
  gap: 0.1rem;
  padding: 0.1rem;
  background: rgba(0,0,0,0.85);
  z-index: 1000;
  align-items: center;
  border-bottom: 1px solid #333;
}

.controls-container {
  display: flex;
  gap: 0.1rem;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
}

.close-controls {
  background: #d9534f;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  padding: 6px 12px;
  margin-left: 5px;
  font-size: 0.9rem;
  transition: background 0.2s;
}

.close-controls:hover {
  background: #c9302c;
}

.slideshow-controls button {
  padding: 6px 12px;
  border: none;
  border-radius: 6px;
  background: #333;
  color: #fff;
  cursor: pointer;
  font-size: 0.9rem;
  transition: background 0.2s;
}
.slideshow-controls button:hover {
  background: #555;
}

.slideshow-controls button.active {
  background: #5cb85c;
}


.nav-buttons {
  position: absolute;
  top: 50%;
  width: 100%;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
  pointer-events: none;
}
.nav-btn {
  pointer-events: auto;
  background: rgba(0,0,0,0.4);
  border: none;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  padding: 0.5rem 1rem;
  border-radius: 50%;
  transition: background 0.2s;
}
.nav-btn:hover {
  background: rgba(0,0,0,0.6);
}

.speed-display {
  color: #ddd;
  font-size: 0.9rem;
  margin: 0 5px;
}

@media (max-width: 768px) {
  .slideshow-controls {
    left: 0;
    width: 100%;
    top: -5px;
  }
  .controls-container {
    gap: 0.3rem;
  }
  .slideshow-controls button {
    padding: 5px 8px;
    font-size: 0.8rem;
  }
  .slideshow-hamburger {
    top: 15px;
    left: 15px;
  }
}


.main {
  margin: 0px;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: #000;
  color: #fff;
  height: 95vh;
}

/* Flexible Column Layout */
.columns {
    display: flex;
    gap: 20px;
    padding: 60px 60px; /* Add vertical spacing */
    height: 80vh;   /* Make the container span the 90% viewport height */
    align-items: stretch; /* Ensure children stretch vertically */    
}

.columns .left-col {
    flex: 1; /* Takes 1 part of available space (e.g., 33%) */
    min-width: 250px; /* Ensure a minimum size */
}

.columns .right-col {
    flex: 2; /* Takes 3 parts of available space (e.g., 66%) */
}
    
    
/* Ensures both columns stretch to the same height automatically */    
.columns .left-col,
.columns .right-col {
  display: flex;
  flex-direction: column;
}
    

.photo-container {
  position: relative;
  flex: 1;          /* Fill available column height */
  width: 100%;
  min-height: 300px; /* Safety for very small screens */
}

.photo-bg-img {
  position: absolute;
  inset: 0;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}


.photo-descr-container {
  background: var(--background-alt);
  padding: 3rem;
  border-radius: var(--radius);
  box-shadow: 0 10px 30px var(--shadow);
  flex: 1;              /* Match image column height */
  top: 100px;
}

    .photo-date {
      color: var(--primary);
      font-size: 1.4rem;
      margin-bottom: 2rem;
      opacity: 0.9;
      font-weight: 600;
    }
    .photo-heading {
      font-size: 2.4rem;
      font-style: italic;
      font-weight: 600;
      color: var(--primary-dark);
      margin-bottom: 1.5rem;
      line-height: 1.4;
    }
    .photo-descr {
      font-size: 1.7rem;
      line-height: 1.7;
      color: var(--text);
    }


.photo-name {
  font-size: clamp(1rem, 2.5vw, 1.8rem);
  font-weight: bold;
  line-height: 1.4;
  background: rgba(0,0,0,0.6);
  display: inline-block;
  padding: 0.3rem 0.6rem;
  border-radius: 6px;
}
    
    
/* Mobile-specific adjustments */
@media screen and (max-width: 767px) {
  /* Adjust main layout for mobile */
  .main {
    height: auto;
    min-height: 100vh;
  }
  
  /* Adjust columns layout */
  .columns {
    flex-direction: column-reverse;
    gap: 20px;
    padding: 15px;
    height: auto;
  }
  
  /* Ensure both columns take full width */
  .columns .left-col,
  .columns .right-col {
    width: 100%;
    flex: none;
  }
  
  /* Adjust description container */
  .photo-descr-container {
    position: static;
    padding: 1.5rem;
    margin: 0;
    top: 0;
  }
  
  /* Adjust font sizes for mobile */
  .photo-heading {
    font-size: 1.6rem;
    margin-bottom: 1rem;
  }
  
  .photo-descr {
    font-size: 1.2rem;
    line-height: 1.5;
  }
  
  .photo-date {
    font-size: 1.1rem;
    margin-bottom: 1rem;
  }
  
  /* Adjust photo container */
  .photo-container {
    min-height: 250px;
    height: 50vh;
    margin-bottom: 0;
  }
}