/* Reset and base styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  background-color: #fff;
  color: #313131;
  line-height: 1.5;
}

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

.photo-header {
  text-align: center;
  margin-bottom: 3rem; 
}

.back-button {
  display: inline-block;
  margin-bottom: 2rem;
  color: #6a9fb5;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1rem;
}

.back-button:hover {
  text-decoration: underline;
}

.photo-header h1 {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  color: #313131;
  font-family: inherit;
  font-weight: normal;
  color:;
}

.photo-description {
  font-size: 1.2rem;
  color: #515151;
  max-width: 600px;
  margin: 0 auto;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
  margin: 0 1rem;
}

.photo-item {
  cursor: pointer;
  overflow: hidden;
  border-radius: 4px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background-color: #f5f5f5;
  aspect-ratio: 4/5; /* 4:5 ratio - slightly vertical */
  /* Add this line when adding a transparent div overlay */
  /*position: relative;*/
}

/* Add these lines when adding a transparent div overlay. As such disables lightbox...
.photo-item::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: transparent;
  z-index: 10;
}
*/

.photo-item:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.photo-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  /* TO DISABLE RIGHT-CLICK : */
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-user-drag: none;
  -khtml-user-drag: none;
  -moz-user-drag: none;
  -o-user-drag: none;
  user-drag: none;
  -webkit-tap-highlight-color: transparent;
}



/* Lightbox styles */
.lightbox {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.9);
  overflow-y: auto;
}

.lightbox.active {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.lightbox-content {
  max-width: 85%;
  max-height: 75%;
  object-fit: contain;
  border-radius: 8px;
  margin-bottom: 1rem;
  /* TO DISABLE RIGHT-CLICK : */
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-user-drag: none;
  -khtml-user-drag: none;
  -moz-user-drag: none;
  -o-user-drag: none;
  user-drag: none;
  -webkit-tap-highlight-color: transparent;
}

.lightbox-info {
  text-align: center;
  color: #f1f1f1;
  max-width: 600px;
}

.lightbox-title {
  font-size: 1.4rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
  color: #fff;
}

.lightbox-description {
  font-size: 1rem;
  line-height: 1.5;
  color: #e0e0e0;
}

.close {
  position: absolute;
  top: 20px;
  right: 35px;
  color: #f1f1f1;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  z-index: 1001;
}

.close:hover {
  color: #bbb;
}

/* Mobile lightbox adjustments */
@media (max-width: 768px) {
  .lightbox.active {
    padding: 1rem;
  }
  
  .lightbox-content {
    max-width: 95%;
    max-height: 70%;
  }
  
  .lightbox-title {
    font-size: 1.2rem;
  }
  
  .lightbox-description {
    font-size: 0.9rem;
  }
}

.refresh-note {
  text-align: center;
  margin-top: 2rem;
  padding: 1rem;
  background-color: #f9f9f9;
  border-radius: 8px;
  color: #6a9fb5;
  font-size:1.2rem;
  font-style: bold;
  text-decoration: none;
}

.refresh-note:hover {
  text-decoration: underline;
}

/* Top note: same gap below it as the bottom note has above it */
.refresh-note-top {
  margin-bottom: 2rem;
}


/* Responsive design */
@media (max-width: 768px) {
  .photo-container {
    padding: 1rem;
  }
  
  .photo-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 0.8rem;
    margin: 0 0.5rem;
  }
  
  .photo-header h1 {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .photo-grid {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 0.6rem;
    margin: 0;
  }
  
  .photo-header h1 {
    font-size: 1.8rem;
  }
  
  .photo-description {
    font-size: 1.1rem;
  }
}

.copyright-notice {
  text-align: center;
  margin-top: 1rem;
  padding: 1.5rem;
  background-color: #f5f5f5;
  border-radius: 0px;
  color: #515151;
  font-size: 0.9rem;
  border-top: 2px solid #ac4142;
}