/* Portfolio PAge -------------------------------------------------------------- */
body {

  padding-bottom: 0px !important;
}

#work-section {
    padding: 32px;
}

@media (max-width: 575.99px) {
  #work-section {
      padding: 24px;
  }
}
.work-tile {
  text-decoration: none;
  color: inherit;
}

.tile-image {
position: relative;
width: 100%;
height: 55vh;
border-radius: 0px;
overflow: hidden;
box-shadow: 0 0 16px  rgb(0, 0, 0, 0.0);
}

.tile-image-inner,
.tile-video,
.tile-gradient-canvas {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
object-fit: cover;
transition: opacity .6s ease, transform 1s ease;
z-index: 1;
}

.tile-image-inner {
background-image: url('img/project1.jpg');
background-size: cover;
background-position: center;
}

.tile-gradient-canvas {
z-index: 2;
pointer-events: none;
mix-blend-mode: screen;
opacity: 0;
}

.tile-video {
z-index: 3;
opacity: 0;
}

.tile-image:hover .tile-gradient-canvas,
.tile-image:hover .tile-video {
opacity: 1;
}

.tile-image:hover .tile-image-inner {
opacity: 0;
transform: scale(1.05);
}

/* Tablet breakpoint (max 768px) */
@media (max-width: 768px) {
  .tile-image {
    height: 35vh; /* ✅ fixed height */
  }
}






/* ✅ Only the image scales, container stays the same */
.work-tile:hover .tile-image-inner {
  transform: scale(1.05);
}

.tile-caption {
  margin-top: 1.5rem;
  font-size: 1rem;
  font-weight: 100;
  color: #898989;
  text-align: center;
  transition: color 0.3s ease-in-out;  /* ✅ Add transition */


}


.work-tile:hover .tile-caption {
  color: #ffffff;
  transition: color 0.3s ease-in-out;  /* ✅ Add transition */

}



/*************************************************************
 WORK FILTER BAR (DESKTOP / TABLET)
**************************************************************/
.work-filters {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 997;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.55rem;
  padding: 28px 5rem 18px;
  margin: 0;
  background: transparent;
  backdrop-filter: none;
  box-sizing: border-box;
}

/* Gradient behind pills (desktop/tablet) */
.work-filters::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 110px;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.6) 0%,
    rgba(0, 0, 0, 0.0) 100%
  );
  pointer-events: none;
  z-index: -1;
}

/* Header pills */
.work-filter__pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.3rem 0.9rem;
  border-radius: 999px;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(0, 0, 0, 0.25);
  color: #ffffff;
  cursor: pointer;
  transition:
    background 0.15s ease,
    color 0.15s ease,
    border-color 0.15s ease,
    box-shadow 0.15s ease,
    transform 0.15s ease;
  white-space: nowrap;
}

/* Active filter */
.work-filter__pill.is-active {
  background: #ffffff;
  color: #000000;
  border-color: #ffffff;
}

/* Hover states (desktop only) */
@media (hover: hover) {
  /* Inactive pill hover: thicker border, no fill */
  .work-filter__pill:not(.is-active):hover,
  .work-filter__pill:not(.is-active):focus-visible {
    background: #0c0c0c45; /* keep same background */
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.85);
   

    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
  }

  /* Active stays white (no change, but explicitly defined) */
  .work-filter__pill.is-active:hover,
  .work-filter__pill.is-active:focus-visible {
    background: #ffffff;
    color: #0c0c0c;
    border-color: #ffffff;
    border-width: 1px;
  }
}

/* All pill: flash white on press/click */
.work-filter__pill[data-filter="all"]:active {
  background: #ffffff;
  color: #0c0c0c;
  border-color: #ffffff;
}


.work-filter__pipe {
  display: inline-block;

  opacity: 0.6;
  transform: translateY(0);

}




/*************************************************************
 MOBILE FILTERS: BOTTOM BAR + SHEET (≤ 576px)
**************************************************************/

/* Shell that holds the button + panel at the bottom */
.work-filters-shell {
  position: static; /* default for desktop */
}


.work-filters-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

/* Hide mobile-only controls by default (desktop/tablet) */
.work-filters-toggle {
  display: none;
}

.work-filters-close {
  display: none;
}

/* MOBILE LAYOUT */
@media (max-width: 576px) {
  .work-filters-shell {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1002;
    display: block;
  }

  .work-filters-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;

    /* centered horizontally, 40px above bottom of viewport */
    margin: 0 auto 40px;

    padding: 0.45rem 1rem;
    max-width: 320px;

    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: #0c0c0cb9;
    color: #ffffff;

    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    cursor: pointer;

    /* Fade out when panel opens */
    transition: opacity 0.2s ease;

    /* No need to float above panel anymore */
    position: relative;
    z-index: 1;
  }

  .work-filters-toggle-label,
  .work-filters-toggle-symbol {
    white-space: nowrap;
  }

  /* When the panel is open, fade the toggle out + disable it */
  .work-filters-shell.is-open .work-filters-toggle {
    opacity: 0;
    pointer-events: none;
  }

  /* Filter panel as bottom sheet, hidden by default */
    .work-filters {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100dvh;
    max-width: none;

    margin: 0;
    padding: 24px;
    padding-top: calc(24px + env(safe-area-inset-top));
    padding-bottom: calc(24px + env(safe-area-inset-bottom));

    /* Center the stack */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 18px;

    background: rgba(18, 18, 18, 0.9);
    backdrop-filter: blur(4px);
    border-radius: 0;

    /* Hidden state */
    transform: translateY(16px);
    opacity: 0;
    pointer-events: none;

    transition:
      transform 0.3s ease,
      opacity 0.25s ease;

    z-index: 1003; /* above overlay + shell */
  }

  .work-filters::before {
    display: none;
  }

  .work-filters.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  /* Pills stack vertically */
  .work-filter__pill {
    width: auto;          /* content-driven width */
    max-width: 100%;
    padding: 0.3rem 1.1rem;
    white-space: nowrap; /* prevents ugly wraps */
    font-size: 0.85rem;
  }

    /* Close becomes a large separated X at the bottom */
  .work-filters-close {
    display: flex;
    order: 999;
    justify-content: center;
    align-items: center;

    width: auto;
    margin-top: 16px;        /* double separation */
    padding-top: 16px;       /* visual break from filters */

    background: transparent;
    border: none;

    color: #ffffff;
    font-size: 2rem;         /* larger X */
    line-height: 1;
    cursor: pointer;
    opacity: 0.8;
  }

  .work-filters-close:hover {
    opacity: 1;
  }

  .works-page {
    padding-bottom: 0px;
    padding-top: 0;
  }

  .no-results-message {
  font-size: 1rem;
}

}



/* Base (hidden) state — takes no space and doesn’t affect layout */
.no-results-message {
  position: fixed;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -40%); /* start slightly above for smoother animation */

  width: 100%;
  max-width: 90%;
  text-align: center;
  padding: 0 1rem;

  font-family: "Times New Roman", Times, serif;
  font-style: italic;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  line-height: .9;
  

  color: #ffffff;
  font-size: 2.6rem;

  opacity: 0;
  pointer-events: none;
  z-index: 999; /* Above tiles but below filter sheet */

  transition:
    opacity 0.35s ease,
    transform 0.35s ease;
}

  .no-results-message__text {
    padding-top: 24px;
  }

/* When visible — fade in + center cleanly */
.no-results-message.is-visible {
  opacity: 1;
  transform: translate(-50%, -50%); /* perfect centered */
}

/* Make the + a bit larger + easier to read */
.work-filter__plus {
  display: inline-block;
  font-size: 1.35em;   /* slightly bigger than pill text */
  line-height: 1;
  margin-right: 0.45rem;   /* space on BOTH sides of the pipe */
  transform-origin: center center;
  transition: transform 0.2s ease;
}


/* Active pills rotate the + into an X */
.work-filter__pill.is-active .work-filter__plus{
  transform:rotate(45deg) !important;
}


/* MOBILE LAYOUT */
@media (max-width: 576px) {


  .no-results-message {
  font-size: 1.6rem;
}
  .no-results-message__text {
    padding-top: 16px;
  }

}

