/* =========================================
EDITS PAGE – JUSTIFIED GALLERY STYLE
Same visual language as album page
========================================= */

body {
  background: #0b0b0b;
  color: #fff;
}

/* HEADER */
.edits-header {
  padding: 160px 6vw 40px;
  text-align: center;
}

.edits-header h1 {
  font-size: 3rem;
  letter-spacing: 4px;
  font-weight: 500;
}

.edits-meta {
  margin-top: 12px;
  color: #8a8a8a;
  letter-spacing: 2px;
  font-size: .9rem;
}

/* GALLERY CONTAINER */
#editsGallery {
  max-width: 1600px;
  margin: 0 auto;
  padding: 40px 5vw 120px;
}

#imageCount {
  text-align: center;
  color: #8a8a8a;
  letter-spacing: 2px;
  font-size: .75rem;
}

/* ROW */
.fj-row {
  display: flex;
  justify-content: center;
  /* keeps centered on mobile */
  gap: 18px;
  margin-bottom: 18px;
}

/* IMAGE */
.fj-row img {
  display: block;
  border-radius: 18px;
  object-fit: contain;
  /* NEVER crop */
  background: #111;
  cursor: pointer;
  transition: transform .25s ease, filter .25s ease;
}

.fj-row img:hover {
  transform: scale(1.03);
  filter: brightness(1.08);
  z-index: 2;
}

/* MOBILE */
@media(max-width:768px) {
  #editsGallery {
    padding: 30px 10px 90px;
  }

  .fj-row {
    gap: 10px;
    margin-bottom: 10px;
  }
}

/* LIGHTBOX */
.edits-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .96);
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  z-index: 20000;
}

.edits-lightbox img {
  max-width: 92vw;
  max-height: 88vh;
  object-fit: contain;
}

.edits-close {
  position: absolute;
  top: 26px;
  right: 36px;
  font-size: 32px;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
}

.edits-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 44px;
  background: rgba(0, 0, 0, .45);
  border: none;
  color: white;
  padding: 18px 22px;
  border-radius: 50%;
  cursor: pointer;
}

.edits-prev {
  left: 30px;
}

.edits-next {
  right: 30px;
}

.edits-nav:hover {
  background: rgba(255, 255, 255, .15);
}

/* ===== EDITS = ALBUM STYLE CARDS ===== */
/* GRID */
#editsGallery {
  max-width: 1500px;
  margin: auto;
  padding: 60px 5vw 120px;

  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 34px;
}

/* laptop */
@media(max-width:1400px) {
  #editsGallery {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* tablet */
@media(max-width:900px) {
  #editsGallery {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* mobile phones */
@media(max-width:520px) {
  #editsGallery {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
    /* tighter spacing for small screens */
  }
}


/* CARD */
.edit-folder {
  border-radius: 24px;
  overflow: hidden;
  cursor: pointer;
  transition: transform .35s ease;
}

.edit-thumb {
  position: relative;
  aspect-ratio: 2 / 3;
  /* poster ratio */
  width: 100%;
  border-radius: 24px;
  overflow: hidden;
}

@media(max-width:520px) {
  #editsGallery {
    gap: 16px;
  }

  .edit-title .title {
    font-size: .95rem;
  }

  .view-text {
    font-size: .65rem;
  }
}


/* IMAGE */
.edit-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}

/* OVERLAY */
.edit-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, .85), rgba(0, 0, 0, .2), transparent);
  transition: opacity .35s ease;
}

/* TEXT */
.edit-title {
  position: absolute;
  bottom: 18px;
  left: 20px;
  right: 20px;
  z-index: 2;
}

.title {
  font-size: 1.1rem;
  letter-spacing: .5px;
}

.view-text {
  font-size: .75rem;
  letter-spacing: 2px;
  opacity: .7;
}

/* HOVER EFFECT (NOW WORKS) */
.edit-folder:hover {
  transform: translateY(-12px) scale(1.02);
}

.edit-folder:hover img {
  transform: scale(1.1);
}

.edit-folder:hover .edit-overlay {
  opacity: .95;
}

.edits-controls {
  max-width: 1700px;
  margin: 20px auto 10px;
  padding: 0 5vw;
  display: flex;
  gap: 12px;
  align-items: center;
}

.edits-controls input {
  flex: 1;
  padding: 12px 16px;
  border-radius: 12px;
  border: none;
  background: #111;
  color: white;
}

.edits-controls select,
#toggleView {
  padding: 12px 14px;
  border-radius: 12px;
  border: none;
  background: #111;
  color: white;
  cursor: pointer;
}

/* ===========================
LIST VIEW MODE
=========================== */

.list-view {
  display: flex !important;
  flex-direction: column;
  gap: 14px;
}

/* row container */
.list-view .edit-folder {
  width: 100%;
  height: 90px;
  border-radius: 16px;
  background: #0f0f0f;
  overflow: hidden;
}

/* horizontal layout */
.list-view .edit-thumb {
  display: flex;
  align-items: center;
  height: 100%;
  aspect-ratio: auto;
}

/* thumbnail */
.list-view .edit-thumb img {
  width: 140px;
  height: 100%;
  object-fit: cover;
}

/* remove dark gradient */
.list-view .edit-overlay {
  display: none;
}

/* text alignment */
.list-view .edit-title {
  position: relative;
  bottom: auto;
  left: auto;
  padding: 0 18px;
}

.list-view .title {
  font-size: 1rem;
}

.list-view .view-text {
  font-size: .75rem;
  opacity: .6;
}

/* disable hover zoom in list */
.list-view .edit-folder:hover {
  transform: none;
}

.list-view .edit-folder:hover img {
  transform: none;
}

/* =========================
FOLDER LIST VIEW
========================= */

.list-view {
  display: flex !important;
  flex-direction: column;
  gap: 14px;
}

/* row */
.folder-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #121212;
  padding: 16px 18px;
  border-radius: 18px;
  transition: .25s ease;
  cursor: pointer;
}

/* left section */
.folder-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* icon */
.folder-icon {
  width: 46px;
  height: 46px;
  background: #1c1c1c;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #8ab4ff;
}

/* text */
.folder-name {
  font-size: 1rem;
}

.folder-count {
  font-size: .8rem;
  opacity: .6;
  margin-top: 3px;
}

/* arrow */
.folder-arrow {
  opacity: .5;
  transition: .25s;
}

/* hover */
.folder-row:hover {
  background: #1a1a1a;
  transform: translateX(6px);
}

.folder-row:hover .folder-arrow {
  transform: translateX(6px);
  opacity: 1;
}



.view-toggle.list .toggle-slider {
  transform: translateX(44px);
}
/* ===== ACTOR CATEGORY CARDS ===== */

.actor-category {
  border-radius: 22px;
  overflow: hidden;
  cursor: pointer;
  transition: transform .35s ease;
}

.actor-thumb {
  position: relative;
  aspect-ratio: 2 / 3;
  border-radius: 22px;
  overflow: hidden;
}

.actor-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .45s ease;
}

/* gradient */
.actor-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top,
      rgba(0,0,0,.95),
      rgba(0,0,0,.45),
      rgba(0,0,0,0));
}

/* text */
.actor-info {
  position: absolute;
  bottom: 16px;
  left: 18px;
  right: 18px;
}

.actor-title {
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: .3px;
}

.actor-meta {
  margin-top: 4px;
  font-size: .78rem;
  letter-spacing: 1.4px;
  color: #bdbdbd;
}

/* hover */
.actor-category:hover {
  transform: translateY(-10px) scale(1.02);
}

.actor-category:hover img {
  transform: scale(1.12);
}

/* responsive spacing fix */
#gallery {
  gap: 28px;
}

@media(max-width:520px){
  .actor-title{ font-size:.95rem }
  .actor-meta{ font-size:.7rem }
}
.folder-creator{
    margin-top:4px;
    font-size:12px;
    opacity:.75;
}

.creator-icon{
    margin-left:6px;
    opacity:.7;
    transition:.2s;
}

.creator-icon:hover{
    opacity:1;
    transform:translateY(-1px);
}

.creator-icon.twitter{ color:#1DA1F2; }
.creator-icon.instagram{ color:#E1306C; }
