/* General reset */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Helvetica Neue', sans-serif;
    background-color: #f9f9f9;
    color: #333;
    padding: 1rem;
    overscroll-behavior-y: auto;
    overflow-y: auto;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

h1 {
    margin-bottom: 1.5rem;
    margin-top: 80px;
    font-size: 2.2rem;
    color: #444;
}
.pull-to-refresh {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 60px;
  display: flex;
  justify-content: center;
  align-items: center;
  pointer-events: none;
  opacity: 0;
  transform: translateY(-60px);
  transition: transform 0.3s ease, opacity 0.3s ease;
  z-index: 1;
}

.pull-to-refresh.visible {
  opacity: 1;
  transform: translateY(0);
}

.loading-placeholder {
  width: 100%;
  height: 200px; /* Adjust based on your image height */
  background: linear-gradient(90deg, #eee, #ddd, #eee);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 8px;
  margin-bottom: 10px;
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.scroll-wrapper {
  height: 100vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: auto;
}

.button {
  font-family: Helvetica, Arial, sans-serif;
  font-size: 1.2rem;
  padding: 0.75rem 2rem;
  border: 2px solid #ccc;
  border-radius: 40px;
  background-color: white;
  color: #333;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.button:hover {
  background-color: #f7f7f7;
  border-color: #999;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.button:active {
  transform: scale(0.98);
}

.file-upload {
      display: inline-block;
          font-family: Helvetica, Arial, sans-serif;
          font-size: 1rem;
          color: #555;
          background-color: #fff;
          border: 2px dashed #ccc;
          border-radius: 16px;
          padding: 2rem;
          text-align: center;
          cursor: pointer;
          transition: border-color 0.3s ease, background-color 0.3s ease;
}

.file-upload:hover {
      border-color: #d4af37; /* soft gold tone */
          background-color: #fffef9;
}

.file-upload input[type="file"] {
      display: none;
}

.file-upload-label {
      display: block;
          font-size: 1.1rem;
          color: #777;
          margin-top: 0.5rem;
}

@keyframes loading {
    0% { width: 0%; }
    25% { width: 10% }
    100% { width: 100%; }
}

.gallery-photo {
    opacity: 0;
    animation: photoFadeIn 0.6s ease forwards;
}

@keyframes photoFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0px);
    }
}

.hidden {
    display: none;
}

/* Gallery grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    padding: 1rem;
}

/* Photo styling */
.gallery-photo {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-photo:hover {
    transform: scale(1.03);
}

/* Lightbox overlay */
.lightbox {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: rgba(0,0,0,0.8);
      justify-content: center;
      align-items: center;
      z-index: 1000;
}

.lightbox-image {
      max-width: 90%;
      max-height: 90%;
      border-radius: 8px;
      box-shadow: 0 0 20px rgba(0,0,0,0.5);
}

.lightbox.show {
    display: flex;
}


/* Load More button */
#uploadBtn #loadMoreBtn #refreshBtn {
    margin: 2rem auto;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    background-color: #d4a373;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease;
}

#uploadBtn #loadMoreBtn:hover {
    background-color: #bc8a5f;
}

/* Responsive tweaks */
@media (max-width: 600px) {
    h1 {
        font-size: 1.8rem;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }
}
