Content-Security-Policy: script-src 'self' 'nonce-{{ nonce }}';

body {
  font-family: Arial, Helvetica, sans-serif;
}

#album-container {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  overflow-x: auto;
  gap: 20px;
  padding-bottom: 10px;
}

.album-entry {
  flex: 0 0 auto;
  width: 150px;
  text-align: center;
}

.album-entry img {
  width: 150px;
  height: 150px;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
}

.album-cover {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
}
.xalbum-photo {
    width: 300px;
    height: 300px;
    object-fit: cover;
    border-radius: 8px;
}
.xxalbum-photo {
    width: 300px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.album-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: flex-start;
}

.album-item {
    width: 200px;
    text-align: center;
}

.album-item.editing {
  position: relative;
  background-color: rgba(0, 0, 0, 0.05);
}
.album-photo {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Tooltip styling */
.tooltip {
  position: relative;
  display: inline-block;
}

.tooltip-container {
  position: relative;
  display: inline-block;
}

.tooltiptext {
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
  position: absolute;
  z-index: 10;
  bottom: -50px; /* position below image */
  left: 50%;
  transform: translateX(-50%);
  background-color: rgba(0, 0, 0, 0.85);
  color: #fff;
  padding: 8px 10px;
  border-radius: 5px;
  font-size: 13px;
  max-width: 220px;
  text-align: center;
  pointer-events: none;
}

.tooltip-container:hover .tooltiptext {
  visibility: visible;
  opacity: 1;
}


.tooltip:hover .tooltiptext {
  visibility: visible;
  opacity: 1;
}


.context-menu-item {
  padding: 8px 12px;
  cursor: pointer;
  white-space: nowrap;
}

.context-menu-item:hover {
  background-color: #eee;
}


.context-menu-item:hover {
  background-color: #f0f0f0;
}

.input-margin-top {
  margin-top: 5px;
}

.context-menu {
    position: absolute;
    background-color: #fff;
    border: 1px solid #ccc;
    padding: 10px;
    z-index: 1000;
    border-radius: 6px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.context-menu.hidden {
    display: none;
}
.album-photo {
    user-select: none;
}

.photo-name {
  font-size: 18px;
  margin-bottom: 10px;
}

.photo-container {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 40px;
  margin-top: 20px;
}

.photo-left {
  flex-shrink: 0;
}

.photo-right {
  flex-grow: 1;
}

.photo-view {
  max-width: 500px;
  width: 100%; /* makes it shrink on smaller screens */
  height: auto;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
  transform-origin: center center;
  display: block;
  margin: auto;
}

@media (max-width: 768px) {
  .photo-container {
    flex-direction: column;
  }
}

.context-menu {
  position: absolute;
  display: none;  /* Hidden by default */
  background-color: #fff;
  border: 1px solid #ccc;
  padding: 10px;
  z-index: 1000;
  border-radius: 6px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.back-button {
  display: inline-block;
  margin-bottom: 15px;
  padding: 6px 12px;
  background-color: #e0e0e0;
  color: #333;
  text-decoration: none;
  border-radius: 5px;
  font-size: 14px;
  transition: background-color 0.2s ease;
}

.back-button:hover {
  background-color: #d0d0d0;
}

.progress-container {
  width: 100%;
  background-color: #eee;
  border-radius: 5px;
  margin-top: 10px;
  height: 20px;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  width: 0%;
  background-color: #4caf50;
  transition: width 0.3s ease;
}

#upload-message::before {
  content: "⏳ ";
}

.login-container {
    max-width: 400px;
    margin: 50px auto;
    padding: 30px;
    background-color: #f9f9f9;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.login-container h2 {
    text-align: center;
    margin-bottom: 20px;
    color: #333;
}

.login-form .form-group {
    margin-bottom: 15px;
}

.login-form label {
    display: block;
    margin-bottom: 5px;
    color: #555;
    font-weight: bold;
}

.login-form input[type="text"],
.login-form input[type="password"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    box-sizing: border-box;
    font-size: 14px;
}

.login-form input[type="text"]:focus,
.login-form input[type="password"]:focus {
    border-color: #007bff;
    outline: none;
}

.login-button {
    width: 100%;
    padding: 10px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.login-button:hover {
    background-color: #0056b3;
}

.tooltip {
    position: relative;
    display: inline-block;
    width: 100%;
}

.tooltip-text {
    visibility: hidden;
    width: 220px;
    background-color: rgba(0,0,0,0.8);
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 8px;
    position: absolute;
    z-index: 1;
    bottom: 120%; /* Position above the input */
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 14px;
    line-height: 1.4;
}

.tooltip-text::after {
    content: "";
    position: absolute;
    top: 100%; /* Arrow pointing down */
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: rgba(0,0,0,0.8) transparent transparent transparent;
}

.tooltip:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

#album-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
  padding: 10px;
}

.album-card {
  background-color: #f9f9f9;
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 10px;
  text-align: center;
  box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.1);
}

.album-card img {
  width: 100%;
  height: auto;
  max-height: 180px;
  object-fit: cover;
  border-radius: 6px;
}

.photo-count {
  font-size: 0.85rem;
  color: #555;
  margin-top: 8px;
}

.photo-count span {
  font-weight: bold;
  color: #333;
}

.link-button {
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 6px;
  padding: 6px 12px;
  margin: 2px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.link-button:hover {
  background-color: #0056b3;
}
.link-button span {
  margin-left: 4px;
  vertical-align: middle;
}
.link-button.logout {
  background-color: #dc3545;
}

.link-button.logout:hover {
  background-color: #a71d2a;
}
.photo-nav-arrows {
  text-align: center;
  margin: 10px 0;
}

.nav-arrow {
  position: absolute;
  top: 25%; /* This places it 75% up from bottom */
  transform: translateY(-50%);
  font-size: 2.5rem;
  color: white;
  text-decoration: none;
  background-color: rgba(0, 0, 0, 0.4);
  padding: 8px 12px;
  border-radius: 50%;
  z-index: 2;
  transition: background-color 0.2s;
}

.nav-arrow.left {
  left: 10px;
}

.nav-arrow.right {
  right: 10px;
}



.nav-arrow:hover {
  background-color: #007bff;
  color: white;
}

.photo-wrapper {
  position: relative;
  display: inline-block;
}

.header-nav {
  display: flex;
  justify-content: center;     /* Center buttons horizontally */
  gap: 100px;                   /* Space between buttons */
  flex-wrap: wrap;             /* Allow wrapping on smaller screens */
  margin-top: 10px;
  margin-bottom: 10px;
}

.context-menu {
  display: none;
  position: absolute;
  background: #fff;
  border: 1px solid #aaa;
  border-radius: 6px;
  box-shadow: 2px 2px 6px rgba(0,0,0,0.2);
  z-index: 1000;
  padding: 5px;
  min-width: 160px;
}

.context-menu a {
  display: block;
  padding: 6px 12px;
  color: #333;
  text-decoration: none;
}

.context-menu a:hover {
  background-color: #f0f0f0;
}
.photo-wrapper {
  position: relative;
  display: inline-block;
  overflow: hidden;
}

.zoom-controls {
  margin-top: 10px;
  text-align: center;
}

.zoom-button {
  margin: 0 6px;
  padding: 6px 12px;
  font-size: 14px;
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.zoom-button:hover {
  background-color: #0056b3;
}

.photo-description-editor {
  width: 100%;
  margin-top: 5px;
  padding: 6px;
  font-size: 14px;
  resize: vertical;
}
.save-description-btn {
  margin-top: 4px;
  padding: 4px 8px;
  font-size: 14px;
}
.modal {
  position: absolute;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid #ccc;
  padding: 10px;
  border-radius: 8px;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.modal-content {
  all: unset; /* optional: remove inherited styles */
}

.modal textarea {
  width: 100%;
  height: 100px;
  margin-bottom: 10px;
  padding: 8px;
}

.modal-actions {
  text-align: right;
}

.modal-actions button {
  margin-left: 5px;
}
.hidden {
  display: none !important;
}




