/* -----------------------------------------
   Global Defaults (shared across views)
----------------------------------------- */

/* You can add shared styles here if needed */

.page-wrap {
  margin-top: 3rem;
  margin-bottom: 3rem;
}


/* -----------------------------------------
   Photo Viewer Scoped Styles (.photo-mode)
----------------------------------------- */

.photo-mode html,
.photo-mode body,
.photo-mode main {
  margin: 0;
  padding: 0;
  width: 100vw;
  height: 100dvh;
  overflow: hidden;
}

.photo-mode .container {
  max-width: none !important;
  padding: 0 !important;
}

.photo-mode .photo-wrapper {
  position: relative;
  width: 100vw;
  height: 100dvh;
  overflow: hidden;
}

.photo-mode .photo-image {
  object-fit: cover;
  width: 100vw;
  height: 100dvh;
  display: block;
}

/* Overlay bars */
.photo-mode .top-bar,
.photo-mode .bottom-bar {
  position: absolute;
  width: 100%;
  display: flex;
  z-index: 10;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.2); /* translucent light bg */
}

.photo-mode .top-bar {
  top: 0;
  justify-content: space-between;
  gap: 0.5rem;
  padding-top: 0.75rem;
}

.photo-mode .bottom-bar {
  bottom: 0;
  justify-content: space-around;
  padding-bottom: 2rem; /* lift off the screen edge */
  gap: 1rem;
}

/* Shared icon buttons */
.photo-mode .top-bar a,
.photo-mode .top-bar button,
.photo-mode .bottom-bar button {
  color: #000;
  font-size: 2rem;
  background-color: rgba(255, 255, 255, 0.7);
  border: none;
  padding: 0.75rem;
  border-radius: 0.75rem;
  backdrop-filter: blur(2px);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
    text-decoration: none; /* ✅ Add this line */
}


/* -----------------------------------------
   Settings Photo Grid Styles
----------------------------------------- */

.photo-grid-page .photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 0.5rem;
}

.photo-grid-page .photo-thumb {
  position: relative;
  cursor: pointer;
}

.photo-grid-page .photo-thumb img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 0.25rem;
  border: 2px solid transparent;
}

.photo-grid-page .photo-thumb.selected img {
  border-color: #007bff;
}

.photo-grid-page .checkbox-overlay {
  position: absolute;
  top: 6px;
  right: 6px;
  background: rgba(255, 255, 255, 0.8);
  color: #007bff;
  font-weight: bold;
  padding: 2px 6px;
  border-radius: 4px;
  display: none;
}

.photo-grid-page .photo-thumb.selected .checkbox-overlay {
  display: block;
}

.photo-grid-page #action-bar {
  display: flex;
  gap: 1rem; /* ✅ Adds space between buttons */
  justify-content: center;
  margin-top: 1rem;
}


/* Back arrow styling */

.back-arrow {
  display: inline-block;
  margin-bottom: 1rem;
  font-size: 1.5rem;
  text-decoration: none;
  color: #333;
  background: rgba(255, 255, 255, 0.7);
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.back-arrow:hover {
  background: rgba(255, 255, 255, 0.9);
}
