/* multi-story-styles.css */
.post-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #E9EAEB;
    z-index: 9999;
    overflow-y: auto;
    justify-content: center;
    align-items: flex-start;
    padding-top: 0px;
}

.post-popup.show {
    display: flex;
}

.post-popup.slide-up {
    animation: slideUp 0.25s ease-out;
}

.post-popup.slide-down {
    animation: slideDown 0.5s ease-out;
}

.post-popup-content {
    padding: 20px;
    margin: 0 auto;
    text-align: left;
    outline: none;
}

.post-popup-content h1 {
    color: var(--wp--preset--color--custom-blue-2);
}

.close-post-popup {
    position: fixed;
    top: 20px;
    right: 20px;
    background-color: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    margin: 20px;
    width: 48px;
    height: 48px;
    z-index: 10000;
}

/* Specific focus styles for the close button in the multi-story popup */
.close-post-popup:focus-visible {
    outline: 2px solid #f16641; /* Customize the color as needed */
    outline-offset: 2px;
}

/* Additional styles for visual feedback */
.close-post-popup:focus {
    outline: 2px solid #f16641; /* Example color */
    outline-offset: 2px;
}

.close-post-popup img {
    width: 100%;
    height: 100%;
}

.multi-story-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 10px;
}

.multi-story-post-item {
    border-radius: 5px;
    padding: 10px;
}

.multi-story-post-link {
    display: block;
    text-decoration: none;
    color: var(--wp--preset--color--custom-white);
    display: flex;
    flex-direction: column;
    text-align: link;
    position: relative;
  }

.post-popup-link {
    cursor: pointer;
    position: relative;
}

.post-popup-link:focus {
    outline: 2px solid var(--wp--preset--color--custom-orange);
    outline-offset: 2px; /* Optional: Adjusts the space between the outline and the element */
}

/* Hide the default WordPress audio player controls */
.wp-audio-shortcode {
    display: none;
}

/* Style for the TRANSCRIPT element */
/* Hide the checkbox but keep it accessible */
.transcript-toggle {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    overflow: hidden;
  }
  
  /* Style for the transcript header (label) */
  .transcript-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0px 40px;
    background-color: #F2F5F8;
    cursor: pointer;
    font-size: 1.2em;
    font-weight: bold;
  }
  
  /* Arrow style */
  .transcript-header .arrow {
    width: 24px;
    height: 24px;
    transition: transform 0.2s ease;
    transform: rotate(0deg);
  }
  
  /* Content container */
  .transcript-content {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.6s ease, opacity 0.6s ease;
    padding: 0 20px;
    background-color: #FFFFFF;
  }
  
  /* When the checkbox is checked, expand the content */
  .transcript-toggle:checked + .transcript-header + .transcript-content {
    max-height: 50000px; /* or any large enough value to accommodate content */
    opacity: 1;
  }
  
  /* Rotate the arrow when the content is expanded */
  .transcript-toggle:checked + .transcript-header .arrow {
    transform: rotate(180deg);
  }
  
  /* Focus style for the header */
  .transcript-header:focus {
    outline: 2px solid #f16641; /* Example focus style */
  }


@media (max-width: 768px) {
    .multi-story-posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .multi-story-posts-grid {
        grid-template-columns: 1fr;
    }
    .close-post-popup {
        width: 34px;
        height: 34px;
    }
}
