/* MUURI GRID
/* ------------------- */

.container{
  width: 100%;
  height: 100%
}

.grid {
  position: relative;
  height: 100%;
}

/* THUMBNAIL POSITIONAL TRANSITION */
.row [class*='col-'] {
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.row > * {
    padding: 0 !important;
}


.item {
  position: absolute;
  z-index: 1;
  text-decoration: none;
  overflow: hidden; /* Ensures the zoomed image doesn't exceed its container */
  aspect-ratio: 1 / 1;
}

.item-content {
    margin: 1px;
    overflow: hidden;
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    font-size: 12pt;
    color: white;
    cursor: pointer;
  /*border: 0.5px solid black;*/

}

.muuri-item-content-text {
    font-family: "ProtoMono", monospace !important;
    backdrop-filter:blur(4px);
    -webkit-backdrop-filter: blur(4px);

    position: absolute;
    padding: 16px;
    width: 100%;

    bottom: 0; /* Start from the bottom */
    left: 0;
    right: 0; /* Ensuring full width */
    opacity: 0; /* Initially hidden */
    transform: translateY(100%); /* Start below the visible area */

    background-color: rgba(0, 0, 0, 0.0);
    opacity: 0; /* Initially hidden */
    transition: opacity 0.35s ease , transform 0.35s ease;
    color: white; /* Text color */
    text-align: left; /* Center the text horizontally */
    z-index: 2; /* Ensure it's above the image */
    will-change: transform, opacity;
}



.project-title
{
    font-size: 18pt;
    text-transform: uppercase;
}

.project-subtitle
{
    font-weight:100;
    font-size: 9pt;
    text-transform: uppercase;
}

.muuri-item-content-text.experiment-title
{
   padding: 8px;
   line-height:1;
   font-size: 12pt;
   background-color: rgba(0, 0, 0, 1) !important;
}

/* Mobile */
@media screen and (max-width: 768px) {

    .project-title
    {
        font-weight:800;
        font-size: 14pt;
        line-height:1;
    }

    .project-subtitle
    {
        font-weight:100;
        font-size: 7pt;
        text-transform: uppercase;
    }

    hr
    {
        margin: 0.25rem 0;
    }


    .muuri-item-content-text
    {
        backdrop-filter:blur(2px);
        -webkit-backdrop-filter: blur(2px);
        padding: 12px;
        height: 62px;
    }

    .muuri-item-content-text.experiment-title
    {
        margin:0px;
        padding: 6px !important;
        height: 32px !important;
        font-size: 8pt !important;
        font-weight:100;
        opacity: 1 !important;
        transform: translateY(0%) !important;
        transition: none !important;
    }

    .item-content.text-visible .muuri-item-content-text
    {
        background-color: rgba(0, 0, 0, 0.25);
    }
}

/* Text appear for Desktop */
.item-content:hover .muuri-item-content-text {
    opacity: 1; /* Show the text on hover */
    background-color: rgba(0, 0, 0, 0.5);
    transform: translateY(0); /* Move text to its final position */
}

/* Text appear for mobile */
.item-content.text-visible .muuri-item-content-text {
    opacity: 1; /* Show the text */
    background-color: rgba(0, 0, 0, 0.5);
    transform: translateY(0); /* Move text to its final position */
}


.item-content img{
   transition: transform 0.35s ease, filter 0.9s ease; /* Smooth transition for zoom and blur */
}

.item-content:hover img{
    transform: scale(1.1) translateZ(0) !important; /* Scale up the image on hover */
    filter: brightness(105%) !important; /* Apply a brightening effect on hover */
   }

   .hidden {
    display: none;
}