.gallery-profile-wrapper {
    max-width: 1000px;
    margin: 20px auto;
}

.gallery-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.gallery-actions {
    display: flex;
    gap: 10px;
}

.gallery-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.gallery-grid .gallery-item {
 
    border: 1px solid #444;
    border-radius: 6px;
    overflow: hidden;
    background: #111;
    padding: 5px;
    box-shadow: 0 0 4px rgba(0,0,0,0.4);
}

.gallery-grid .gallery-item img {
    width: 100%;
    display: block;
    border-radius: 4px;
}

.gallery-modal {
    position: fixed;
    z-index: 10000;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.75);
    display: flex;
    justify-content: center;
    align-items: center;
}
.gallery-modal.gallery-hidden {
    display: none;
}

.gallery-hidden {
    display: none !important;
}

.gallery-modal-content {
    background: #222;
    padding: 20px;
    border-radius: 8px;
    width: 400px;
    color: #fff;
    box-shadow: 0 0 12px #0ad;
    position: relative;
}

.gallery-close-modal {
    position: absolute;
    top: 10px;
    right: 12px;
    cursor: pointer;
    font-size: 20px;
}

.gallery-modal-content input[type="text"],
.gallery-modal-content select,
.gallery-modal-content input[type="file"] {
    width: 100%;
    margin: 10px 0;
    padding: 6px;
    border: 1px solid #555;
    background: #111;
    color: #fff;
}

.gallery-modal-content button {
    padding: 8px 12px;
    background: #0ad;
    color: #fff;
    border: none;
    cursor: pointer;
    border-radius: 4px;
}

.gallery-success {
    background: #1e852e;
    padding: 10px;
    color: #fff;
    margin: 15px;
    border-radius: 5px;
}

.gallery-settings-form .gallery-album-settings {
    margin: 15px 0;
    padding: 10px;
    background: #1c1c1c;
    border: 1px solid #333;
    border-radius: 6px;
}
.gallery-item.gallery-album {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.6);
  border: 2px solid #666;
  border-radius: 8px;
  cursor: pointer;
  padding: 20px;
}

.gallery-item.gallery-album:hover {
  background: rgba(255,255,255,0.05);
}

.album-thumb {
  font-size: 40px;
  margin-bottom: 10px;
}

.album-title {
  font-size: 16px;
  text-align: center;
  color: #f3f3f3;
}

.gallery-back {
  width: 100%;
  text-align: left;
  margin-bottom: 10px;
}

#back-to-main-gallery {
  background: transparent;
  border: 1px solid #999;
  color: #ccc;
  padding: 4px 10px;
  cursor: pointer;
}
.gallery-item.gallery-album img {
  width: 100%;
  height: auto;
  border-radius: 4px;
  margin-bottom: 8px;
  object-fit: cover;
}
#gallery-viewer-modal {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.85);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
}

.gallery-hidden {
  display: none;
}

.gallery-modal-content {
  background: #111;
  color: #fff;
  max-width: 900px;
  width: 95%;
  max-height: 95%;
  overflow-y: auto;
  border-radius: 8px;
  padding: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
}

.gallery-close-modal {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 24px;
  cursor: pointer;
}

.gallery-modal-body {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.gallery-viewer-image img {
  width: 100%;
  max-height: 500px;
  object-fit: contain;
  border-radius: 6px;
}

.gallery-viewer-meta {
  margin-top: 10px;
}

.gallery-tags {
  margin: 8px 0;
  color: #ccc;
}

.gallery-like-bar {
  display: flex;
  gap: 20px;
  font-weight: bold;
  margin: 10px 0;
}

.gallery-comments {
  max-height: 200px;
  overflow-y: auto;
  background: #222;
  padding: 10px;
  border-radius: 4px;
}

.gallery-comment-form {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.gallery-comment-form input {
  flex: 1;
  padding: 6px;
  border: none;
  background: #333;
  color: #fff;
  border-radius: 4px;
}

.gallery-comment-form button {
  padding: 6px 12px;
  background: #0ad;
  color: black;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}
.manage-image-button {
  background: #2196F3;
  color: #fff;
  padding: 6px 12px;
  font-size: 14px;
  border: none;
  border-radius: 4px;
  margin-bottom: 10px;
  cursor: pointer;
  float: left;
width: 200px;
}

.manage-image-button:hover {
  background: #1976D2;
}

.drop-to-unsorted {
  position: fixed;
  bottom: 20px;
  right: 20px;
  padding: 10px 15px;
  background-color: #111;
  color: white;
  font-size: 14px;
  border-radius: 6px;
  border: 2px dashed #888;
  z-index: 9999;
  opacity: 0.9;
  display: block;
  pointer-events: auto;
}

.gallery-hidden {
  display: none !important;
}
.gallery-back {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 15px;
}
.gallery-back {
  display: flex;
  align-items: center;
  justify-content: space-between; /* or use 'start' if you want the drop zone closer */
  gap: 10px;
  margin-bottom: 15px;
}

#drop-to-unsorted.drop-to-unsorted-inline {
  background: #600;
  color: #fff;
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 13px;
  white-space: nowrap;
}
#drop-to-unsorted.drop-to-unsorted-inline:hover {
  background: #a00;
}
.gallery-subtitle {
  font-size: 14px;
  color: #aaa;
  margin-top: 5px;
  margin-bottom: 15px;
}
.gallery-subheader {
  width: 100%;
  display: block;
  margin-bottom: 10px;
}

.gallery-subtitle {
  display: block;
  font-size: 22px;
  color: #e06666;
  margin: 0 0 5px;
}

.gallery-back {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
