/* photos.css */

/*-==================--------------------Timestamp styling -------------=================*/
.timestamp {
  font-size: 0.8em;
  color: #17f403;
  margin-top: 4px;
  margin-bottom: 0;
}


/*-==================--------------------photo placement styling -------------=================*/
#photoInput,
#photoDetails {
  padding: 10px;
  font-size: 1rem;
  border-radius: 6px;
}

#photoGallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 10px;
  justify-items: center;  /* ✅ Center each card */
  padding: 10px;
}

.photo-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: transparent;
  border-radius: 6px;
  overflow: hidden;
  transition: transform 0.2s ease;
  cursor: pointer;
  max-width: 100px; /* ✅ Limit width to center better on small screens */
  text-align: center;
}

.photo-card p {
  font-size: 0.75rem;
  margin-top: 5px;
  color: #aaa;
}

.photo-card small {
  font-size: 0.65rem;
  color: #999;
  margin-top: 2px;
}

.photo-card:hover {
  background: rgba(255, 255, 255, 0.03); /* faint highlight on hover */
}

.photo-card img {
  width: 100px;             /* fixed width */
  height: 100px;            /* fixed height */
  object-fit: cover;        /* crop without distortion */
  border-radius: 8px;
  transition: transform 0.2s ease;
}

.photo-card:hover img {
  transform: scale(1.05);   /* slight zoom on hover */
}




.photo-actions {
  margin-top: 8px;
}

.photo-actions button {
  margin-right: 8px;
  padding: 4px 8px;
  border: none;
  background: #444;
  color: #fff;
  border-radius: 4px;
  cursor: pointer;
}

.photo-actions button:hover {
  background: #222;
}

/*=========================---PHOT FORM STYLING============================----------------*/

.photo-upload-form {
  background: transparent;
  padding: 12px 15px;
  border-radius: 10px;
  margin-bottom: 20px;
  box-shadow: 0 0 6px rgba(255, 255, 255, 0.1);
  color: #eee;
}

.photo-upload-form label {
  font-weight: bold;
  color: #90ee90;
  display: block;
  margin-bottom: 4px;
  margin-top: 10px;
}

.photo-upload-form input[type="file"],
.photo-upload-form textarea {
  width: 100%;
  margin-bottom: 10px;
  padding: 6px;
  border-radius: 4px;
  border: none;
  background: #2a2a2a;
  color: white;
}

.upload-btn {
  background: #0a84ff;
  color: white;
  border: none;
  padding: 10px 16px;
  border-radius: 5px;
  cursor: pointer;
  margin-top: 10px;
}
.upload-btn:hover {
  background: #006edc;
}


.photo-tools {
  background: #111;
  padding: 10px;
  margin-bottom: 10px;
  border-radius: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.photo-tools label {
  color: #fff;
  font-size: 0.9rem;
}

.photo-tools input,
.photo-tools button {
  padding: 6px 10px;
  border-radius: 4px;
  border: none;
  outline: none;
}
.photo-tools input {
  background: #2a2a2a;
  color: white;
}
.photo-tools button {
  background: #28a745;
  color: white;
  cursor: pointer;
}
.photo-tools button:hover {
  background: #218838;
}

/* ========================---------------------Fullscreen modal overlay-----------------=========================== */
#fullscreenOverlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(5, 5, 5, 0.9);
  z-index: 9999;
  justify-content: center;
  align-items: center;
}

#fullscreenOverlay img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(0,0,0,0.5);
}

#fullscreenOverlay:active {
  display: none;
}

.photo-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  flex-direction: column;
  padding: 20px;
}

.photo-modal-content {
  max-width: 95%;
  max-height: 90%;
  text-align: center;
  color: white;
}

.photo-modal-content img {
  max-width: 100%;
  max-height: 80vh;
  border-radius: 10px;
  margin-bottom: 10px;
}

.photo-modal-close {
  position: absolute;
  top: 10px;
  right: 20px;
  font-size: 2rem;
  color: white;
  cursor: pointer;
}

/* ========================-------------------grid list view-----------------=========================== */
/* ✅ Grid View (default) */
.photo-card.list {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  padding: 10px;
  margin: 10px 0;
  width: 100%;
  max-width: 100%;
  background-color: rgba(255, 255, 255, 0.04); /* transparent feel */
  border-radius: 12px;
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.1);
}

.photo-card.list img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
}

.photo-card.list .photo-info {
  flex-grow: 1;
  text-align: left;
  color: white;
}

.photo-card.list .photo-info p {
  margin: 0 0 4px;
  font-size: 14px;
}

.photo-card.list .photo-info small {
  color: #aaa;
  font-size: 12px;
}

