/* ================================
   ALBUM HERO SECTION
================================ */

/* Wrapper */
.album-hero {
    width: 100%;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    display: block;
}


/* Inner Section */
.album-hero__inner {
  position: relative;
  max-width: 100%;
  margin: 0 auto;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  overflow: hidden;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* Overlay */
.album-hero__overlay {
  position: absolute;
  inset: 0;
  background: rgba(18, 24, 32, 0.60); /* lighter overlay */
  z-index: 1;
  border-radius: 20px;
}

/* Content */
.album-hero__content {
  position: relative;
  z-index: 2;
  padding: 100px 20px;
}

/* Title */
.album-hero__title {
  margin: 0;
  color: white;
  line-height: 1.2;
  font-size: 50px;
  font-weight: 600;
}

.album-hero__title .title-primary {
  display: block;
  font-weight: 600;
  color: #ffffff;
}

.album-hero__title .title-secondary {
  display: block;
  font-family: var(--e-global-typography-secondary-font-family);
  font-style: italic;
  font-weight: 400;
  margin-top: 5px;
  color:#ffffff;
}

/* Breadcrumb */
.album-hero__breadcrumb {
  margin-top: 20px;
  color: #eee;
  font-size: 16px;
}

.album-hero__breadcrumb span {
  margin: 0 4px;
  color: #fff;
}

/* Responsive Hero */
@media (max-width: 1024px) {
  .album-hero, .album-hero__inner {
    margin: 0 !important;
    border-radius: 0 !important;
  }
  .album-hero__content { padding: 60px 15px !important; }
  .album-hero__title { font-size: 38px !important; }
}

@media (max-width: 768px) {
  .album-hero__title { font-size: 32px !important; }
  .album-hero__content { padding: 50px 15px !important; }
}

@media (max-width: 480px) {
  .album-hero__title { font-size: 26px !important; }
  .album-hero__inner { min-height: 260px !important; }
}


/* ================================
   SECTION TITLE
================================ */

.album-section-title {
    display: flex !important;
    justify-content: center !important;
    align-items: baseline !important;
    gap: 8px;
    font-size: 42px;
    font-weight: 600;
    margin-bottom: 40px;
}

.album-section-title .title-primary {
    font-family: var(--e-global-typography-primary-font-family);
    font-weight: 600;
    color: #000;
}

.album-section-title .title-secondary {
    font-family: var(--e-global-typography-secondary-font-family);
    font-style: italic;
    font-weight: 400;
    color: #000;
}

@media (max-width: 768px) {
  .album-section-title { font-size: 32px; }
}

@media (max-width: 480px) {
  .album-section-title { font-size: 28px; }
}


/* ================================
   FILTERS
================================ */

#album-filter input[type="text"],
#album-filter select {
  padding: 7px 14px !important;
  border: 2px solid var(--e-global-color-902f74e) !important;
  border-radius: 10px !important;
  background-color: #fff !important;
  color: #121820 !important;
  font-size: 15px;
  transition: .25s;
}

#album-filter select option:hover {
  background: var(--e-global-color-902f74e);
  color: #fff;
}

#album-filter {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

#album-filter input,
#album-filter select {
  min-width: 250px;
}


/* ================================
   GRID LAYOUT
================================ */

#album-results {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    max-width: 1300px;
    margin: 0 auto;

}

@media (min-width: 1440px) {
  #album-results { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 980px) {
  #album-results { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 550px) {
  #album-results { grid-template-columns: 1fr; }
}


/* ================================
   CARD UI
================================ */

.album-wrapper {
  position: relative;
}

.album-overlay-link {
  position: absolute;
  inset: 0;
  z-index: 9999;
  display: block;
}

.video-card {
    border: 0px solid transparent;             
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    transition: 0.25s ease;
    background: #fff;
}

.video-card:hover {
    border-color: transparent !important;
    box-shadow: 0 6px 20px rgba(0,0,0,0.08) !important;
    transform: translateY(-8px);
    transition: 0.25s ease;
    }

.video-content { 
    padding: 20px; 
    text-align: left;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    
    }
    
    .card-footer-area {
    margin-top: auto;
}

/* Thumbnail */
.video-thumb img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
}

/* Title */
.video-card h3 {
    font-family: var(--e-global-typography-803a7aa-font-family), sans-serif;
    font-size: var(--e-global-typography-803a7aa-font-size);
    font-weight: 600;
    color: #121820;
    margin: 0 0 15px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;      /* limit to 2 lines */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}



/* Description */
.album-desc {
    font-size: 15px;
    color: #555;
    line-height: 1.55;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 15px;
}

/* View Button */
.album-view-details-btn {
  display: inline-block;
  background: var(--e-global-color-902f74e);
  padding: 8px 15px;
  color: #fff;
  border-radius: 6px;
  font-weight: 600;
  transition: .25s;
}

.album-view-details-btn:hover {
  background: var(--e-global-color-accent);
}




/* Make sure each card behaves properly */
.video-card,
.album-card,
.album-wrapper {
    margin: 0 auto;
}





/* ================================
   GUEST MODE
================================ */

body.logged-out .video-card * {
  pointer-events: none !important;
  user-select: none !important;
}

body.logged-out .album-overlay-link {
  pointer-events: auto !important;
}

body.logged-out .album-wrapper {
  cursor: pointer !important;
}

body.logged-in .album-overlay-link {
  display: none !important;
}



/* Guest Button Wrapper */
.guest-view-btn {
    display: inline-block;
    margin-top: 10px;
}

/* Guest Button Style */
.guest-view-btn .guest-btn {
    display: inline-block;
    background: #3F3F8F; /* same purple as your other buttons */
    color: #fff;
    padding: 10px 22px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    transition: 0.25s ease;
    cursor: pointer;
}

/* Hover Effect */
.guest-view-btn .guest-btn:hover {
    background: #2d2d6a; /* darker purple */
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}




/* ============================================
   ALBUM POPUP – FINAL DESIGN (Image Left + Content Right)
============================================ */

#album-popup {
    position: fixed;
    inset: 0;
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 999999;
}

#album-popup.show {
    display: flex;
}

#album-popup .popup-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.70);
}

/* POPUP BOX */
#album-popup .popup-box {
    position: relative;
    background: #fff;
    width: 850px;
    max-width: 90%;
    padding: 20px;
    border-radius: 14px;

    display: flex;
    gap: 30px;
    align-items: center;

    z-index: 100;
}

/* IMAGE SECTION */
#album-popup .popup-left {
    flex: 1;
    max-width: 40%;
    display: flex;
    justify-content: center;
    align-items: center;
}

#album-popup-image {
    width: 100%;
    border-radius: 12px;
    object-fit: cover;
}

/* RIGHT CONTENT */
.album-popup .popup-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;  /* vertical center */
    height: 100%;
}

#album-popup-title {

    
    font-family: var(--e-global-typography-primary-font-family);
    font-size: 25px;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 12px;
    color: #121820;
}

#album-popup-desc {
    font-size: 17px;
    line-height: 1.6;
    color: #333;
    margin-bottom: 2px;
}

/* BUTTONS */
#album-popup .popup-buttons {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

#album-popup .popup-btn {
    padding: 12px 25px;
    border-radius: 8px;
    background: var(--e-global-color-accent);
    color: #fff !important;
    text-decoration: none;
    font-weight: 600;
    transition: 0.25s ease;
}

#album-popup .popup-btn:hover {
    background: var(--e-global-color-902f74e);
}

/* CLOSE BUTTON */
#album-popup .popup-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 24px;
    height: 24px;

    background: #fff;
    border: 2px solid var(--e-global-color-accent);
    border-radius: 50%;
    color: var(--e-global-color-accent);
    cursor: pointer;

    display: flex;
    justify-content: center;
    align-items: center;
    transition: 0.25s ease;
}

#album-popup .popup-close:hover {
    background: var(--e-global-color-accent);
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(219, 47, 50, 0.25);
    color: #fff;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    #album-popup .popup-box {
        flex-direction: column;
        padding: 20px;
    }

    #album-popup .popup-left,
    #album-popup .popup-right {
        max-width: 100%;
    }

    #album-popup-image {
        max-height: 260px;
        object-fit: contain;
    }

    #album-popup .popup-buttons {
        flex-direction: column;
    }

    #album-popup .popup-btn {
        width: 100%;
        text-align: center;
    }
}


@media (min-width: 600px) {
    .popup-box {
        width: 850px !important;
        max-width: 90%;
        display: flex !important;
        flex-direction: row !important;
        align-items: flex-start;
        gap: 15px;
    }








/* FIX: Force button section to appear below description */
#album-popup .popup-buttons {
    display: flex !important;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-top: 2px;
}

#album-popup .popup-btn {
    display: inline-block;
    padding: 12px 22px;
    border-radius: 8px;
    background: var(--e-global-color-accent);
    color: #fff !important;
    font-weight: 600;
}


/* Initial state */
.album-wrapper {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

/* When visible */
.album-wrapper.show {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger effect for 4 cards per row */
.album-wrapper:nth-child(4n+1) { transition-delay: 0.1s; }
.album-wrapper:nth-child(4n+2) { transition-delay: 0.2s; }
.album-wrapper:nth-child(4n+3) { transition-delay: 0.3s; }
.album-wrapper:nth-child(4n+4) { transition-delay: 0.4s; }
