/*
 Theme Name:   ANN Child Theme
 Description:  ANN Child Theme
 Template:     ann
 Version:      1.1
*/

/* =========================================================
   GLOBAL FIXES
========================================================= */
@media (min-width: 1025px) {
  .page_content_wrap {
    padding: 0 !important;
    margin: 0 !important;
  }
}

.top_panel_title.sc_layouts_row.sc_layouts_row_type_normal,
.sc_layouts_title.sc_align_center.with_content.without_image.without_tint,
.page-template-event-portfolio-page .entry-title,
.page-template-event-portfolio-page .sc_layouts_title {
  display: none !important;
}

/* =========================================================
   MAIN WRAPPER
========================================================= */
.event-portfolio-archive {
  position: relative;
  display: flex;
  height: 100vh;
  overflow: hidden;
  background-color: #060b12;
  color: #fff;
  font-family: "Poppins", sans-serif;
}

/* =========================================================
   SIDEBAR
========================================================= */
.portfolio-sidebar {
  width: 240px;
  background: #0e0e0e;
  padding: 90px 25px; /* FIXED double padding issue */
  flex-shrink: 0;
  border-right: 1px solid #222;
  position: sticky;
  top: 0;
  height: 100vh;
  z-index: 20;
}

.portfolio-sidebar h3 {
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 25px;
  color: #aaa;
}

.portfolio-sidebar ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.portfolio-sidebar li {
  margin-bottom: 10px;
}

.portfolio-sidebar li a {
  font-size: 15px;
  color: #ccc;
  transition: 0.3s;
  text-decoration: none;
}

.portfolio-sidebar li a:hover,
.portfolio-sidebar li a.active {
  color: #ffcf33;
  font-weight: 600;
}

/* =========================================================
   SCROLL WRAPPER
========================================================= */
.portfolio-scroll-wrapper {
  flex: 1;
  position: relative;
  height: 100vh;
  overflow: hidden;
}

/* ARROWS */
.portfolio-nav {
  position: absolute;
  right: 50px;
  bottom: 40px;
  z-index: 50;
  display: flex;
  gap: 12px;
}

.portfolio-nav button {
  width: 45px;
  height: 45px;
  border-radius: 6px;
  border: 1px solid #fff5;
  background: #fff;
  color: #000;
  font-size: 22px;
  cursor: pointer;
  font-weight: 600;
  transition: 0.3s ease;
}

.portfolio-nav button:hover {
  background: #000;
  color: #fff;
  border-color: #fff;
}

/* =========================================================
   HORIZONTAL SCROLL
========================================================= */
.portfolio-scroll {
  display: flex;
  flex-direction: row;
  align-items: center;
  height: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  gap: 150px !important;   /* FIXED spacing */
  padding: 40px 200px !important; /* FIXED padding */
  -webkit-overflow-scrolling: touch;
}

/* Scrollbar */
.portfolio-scroll::-webkit-scrollbar {
  height: 8px;
}
.portfolio-scroll::-webkit-scrollbar-thumb {
  background: #444;
  border-radius: 10px;
}

/* =========================================================
   PORTFOLIO ITEM
========================================================= */
.portfolio-item {
  flex: 0 0 80vw;
  display: flex;
  flex-direction: column;
  gap: 22px;
  height: auto;
  border-radius: 12px;
  scroll-snap-align: start;
  opacity: 0.95;
  transition: transform 0.4s ease, opacity 0.3s ease;
  background: transparent;
}

.portfolio-item:first-child {
  flex: 0 0 100vw;
  margin-right: -35vw;
}

.portfolio-item:hover {
  transform: scale(1.03);
  opacity: 1;
}

/* =========================================================
   IMAGE BLOCK
========================================================= */
.portfolio-image {
  width: 71%;
  height: 80vh; 
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  border-radius: 0px;
  position: relative;
}

/* =========================================================
   HOVER OVERLAY (CENTERED TEXT)
========================================================= */
.portfolio-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 40px;
  background: rgba(0, 0, 0, 0.48);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.portfolio-item:hover .portfolio-overlay {
  opacity: 1;
}

.portfolio-subtitle {
  color: #eee;
  font-size: 1rem;
  letter-spacing: 1px;
  margin-bottom: 6px;
  opacity: 0;
  transform: translateY(10px);
  transition: 0.35s ease;
}

.portfolio-title {
  font-size: 2.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
  opacity: 0;
  transform: translateY(10px);
  transition: 0.35s ease 0.05s;
}

.portfolio-desc {
  max-width: 500px;
  color: #ddd;
  font-size: 1.1rem;
  opacity: 0;
  transform: translateY(10px);
  transition: 0.35s ease 0.1s;
}

/* Hover animation */
.portfolio-item:hover .portfolio-title,
.portfolio-item:hover .portfolio-subtitle,
.portfolio-item:hover .portfolio-desc {
  opacity: 1;
  transform: translateY(0);
}

/* REMOVE overlay description because it's repeated under image */
.portfolio-overlay .portfolio-desc {
  display: none !important;
}

/* =========================================================
   TITLE + DESCRIPTION UNDER IMAGE
========================================================= */
.portfolio-meta {
  padding-left: 8px;
  padding-top: 5px;
}

.portfolio-meta-title {
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #fff;
}

.portfolio-meta-desc {
  font-size: 1rem;
  color: #ddd;
  margin-top: 4px;
  max-width: 600px;
}

/* =========================================================
   MOBILE LAYOUT
========================================================= */
@media (max-width: 992px) {
  .event-portfolio-archive {
    flex-direction: column;
    height: auto;
    padding-top: 80px;
  }

  .portfolio-sidebar {
    display: none !important;
  }

  .portfolio-scroll-wrapper {
    height: auto;
  }

  .portfolio-nav {
    display: none;
  }

  .portfolio-scroll {
    display: block !important;
    overflow: visible !important;
    padding: 20px !important;
  }

  .portfolio-item {
    width: 100%;
    margin-bottom: 40px;
  }

  .portfolio-image {
    height: auto !important;
    aspect-ratio: 16/9;
  }

  .portfolio-overlay {
    position: relative;
    opacity: 1 !important;
    background: none !important;
    padding: 12px 10px;
  }

  .portfolio-title {
    font-size: 1.4rem !important;
  }
}

/* =========================================================
   HOMEPAGE FIXES
========================================================= */
body.home .page_content_wrap {
  margin-top: -118px !important;
}

.page_content_wrap .content_wrap {
  position: relative;
  width: 100% !important;
  padding-top: 150px;
}

#mc4wp_form_widget-3 > p[style*="color: indianred"] {
  display: none !important;
}

.pmpro_form_label {
  color: white !important;
}

.pmpro_form_heading.pmpro_font-large {
  color: white !important;
}

  .pmpro_section #loginform label:not(.pmpro_section #loginform .login-remember label) {

    color: white;
  }
