/* styles.css */
h1 {
    text-align: center;
    margin-top: 20px;
}

ul {
    list-style-type: none;
    padding: 0;
}

ul li {
    margin: 10px 0;
}

ul li a {
    text-decoration: none;
    color: #1db954;
    font-weight: bold;
}

#podcast-header {
    text-align: center;
    margin: 20px 0;
}

#podcast-header img {
    max-width: 300px;
    border-radius: 10px;
}

#items-grid {
    padding: 20px;
}

.item {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 0;
    text-align: center;
    margin-bottom: 30px; /* Increased spacing */
    box-sizing: border-box;
    overflow: hidden;
    position: relative;
}

/* Fluid 4 columns */
/* Default layout for desktop (4 columns) */
.grid-sizer,
.item {
    width: calc((100% - 90px) / 4); /* 4 columns with 30px gutter */
    margin-bottom: 30px; /* Gutter between items */
}

/* Tablet layout (2 columns) */
@media (max-width: 1024px) {
    .grid-sizer,
    .item {
        width: calc((100% - 30px) / 2); /* 2 columns with 30px gutter */
        margin-bottom: 30px;
    }
}

/* Mobile layout (1 column) */
@media (max-width: 520px) {
    .grid-sizer,
    .item {
        width: 85%; /* Full width for 1 column */
        margin-bottom: 15px; /* Smaller gutter for mobile */
    }
}

.item .content {
    position: absolute;
    bottom: 0;
    background-color: #222c;
}

.item {
    position: relative;
    display: inline-block;
    margin: 10px;
}

.item-img {
    max-width: 100%;
    height: auto;
    display: block;
}
.item-name {
    display: block;
    margin-bottom: 5px;
}
.item-description {
    font-size: 0.9em;
    color: #666;
}

.item img {
    width: 100%;
    height: auto;
    border-radius: 10px 10px 0 0;
}

.item .content {
    padding: 10px 10px 0;
}

.item a {
    color: white;
    font-size: 14px;
    font-weight: bold;
    text-decoration: none;
}

.item p {
    margin: 10px 0;
    color: #333;
}

.item .date {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-family: monospace;
    color: black;
    font-size: 14px;
}

.filters, .other-filters {
    text-align: center;
    margin: 0 auto 20px;
}

.filters button, .other-filters button {
    background-color: #005337;
    border: none;
    border-radius: 5px;
    color: white;
    padding: 10px 20px;
    margin: 5px;
    cursor: pointer;
    font-size: 16px;
}

.filters button:hover, .other-filters button:hover {
    background-color: #003624;
}

.filters button.active, .other-filters button.active {
    background-color: #ad3b49;
}

#toggle-desc {
    border: 4px solid #fff;
}

#toggle-desc.pressed {
    background-color: #ccc; /* Example style for pressed state */
    border: 4px solid #dedede;
    text-decoration: #aaa;
    text-decoration-line: line-through;
}

/* Basic Styled Dropdown */
.other-filters select {
    padding: 8px 12px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: #fff;
    color: #333;
    appearance: none; /* Remove default arrow */
    -webkit-appearance: none; /* Remove default arrow for Safari */
    -moz-appearance: none; /* Remove default arrow for Firefox */
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23333"><path d="M7 10l5 5 5-5z"/></svg>'); /* Custom arrow */
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 12px;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.other-filters select:hover {
    border-color: #999;
}

.other-filters select:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

/*.pagination {
    text-align: center;
    margin: 20px 0;
}

.pagination button {
    background-color: #1db954;
    border: none;
    border-radius: 5px;
    color: white;
    padding: 10px 20px;
    margin: 5px;
    cursor: pointer;
    font-size: 16px;
}

.pagination button:hover {
    background-color: #1aa34a;
}

.pagination #page-info {
    font-size: 16px;
    margin: 0 10px;
}*/

#item-info {
    text-align: center;
    padding: 0 0 20px;
    font-size: 1.2em;
}

.media-type-icon {
    position: absolute;
    top: 7px;
    right: 5px;
    background-color: #c9c9c9d1;
    border-radius: 8px;
    padding: 4px 4px 0px;
    z-index: 10;
}
.media-type-icon svg {
    width: 20px;
    height: 20px;
    fill: black;
}
.content {
    text-align: center;
    margin-top: 10px;
}
.filters {
    margin-bottom: 20px;
}
.search-container {
    position: relative;
    display: inline-block;
}
.search-input {
    padding-right: 30px; /* Adjust based on the size of your "x" icon */
    width: 100%;
    max-width: 300px;
    font-size: 16px;
    padding: 8px;
    box-sizing: border-box;
}
.clear-icon {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 16px;
    color: #999;
}

applist {
    margin: 30px auto 0;
    text-align: center;
    display: block;
    background-color: lightblue;
    padding: 20px;
    border: 4px solid #ccc;
    border-radius: 25px;
    width: 70%;
}

app {
    text-align: center;
}

.other-filters {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-content: center;
    justify-content: space-evenly;
    align-items: center;
    width: 50%;
}

.hidden {
    display:none;
}

/** LIGHTBOX */
.media-container {
    display: none;
}

.fancybox__slide.has-iframe .fancybox__content {
    background-color: black;
}



/* Isotope 
================== */
.isotope {
    overflow: hidden;
}

/* Isotope filter 
================== */
.isotope-filter {
padding: 20px 1.2%;
text-align: center;
}

ul.isotope-filter-links {
    list-style: none;
    margin: 0;
    padding: 0;
}
ul.isotope-filter-links > li {
    display: inline-block;
    margin: 0 8px;
}
ul.isotope-filter-links > li:first-child {
    margin-left: 0;
}
ul.isotope-filter-links > li:last-child {
    margin-right: 0;
}
ul.isotope-filter-links > li > a {
    position: relative;
    display: block;
    padding: 3px 0;
text-decoration: none;
    font-size: 16px;
    color: #333;
}
ul.isotope-filter-links > li > a:hover {
color: #2671ca;
}
ul.isotope-filter-links > li > a.active {
color: #2671ca;
border-bottom: 2px solid #2671ca;
}

/* Isotope items wrap
====================== */
.isotope-items-wrap {
-webkit-transition: all 0.4s ease-in-out;
    -moz-transition: all 0.4s ease-in-out;
    -o-transition: all 0.4s ease-in-out;
    -ms-transition: all 0.4s ease-in-out;
    transition: all 0.4s ease-in-out;
}

/* Isotope item 
=================== */
.isotope-item {
float: left;
width: 33.33333333%;
height: auto;
box-sizing: border-box;
padding: 1.2%;
}

/* Box 
================== */
.box {
padding-bottom: 65%; 
background-color: #2671ca; 
color: #fff;
}
.height-2 .box {
padding-bottom: 130%;
}

.box-red { background-color: red; }
.box-green { background-color: green; }
.box-blue { background-color: blue; }
.box-purple { background-color: purple; }

/* Isotope pager
================== */
.isotope-pager {
    padding: 30px 15px;
    text-align: center;
}
.isotope-pager .pager {
    display: inline-block;
    background-color: #222;
    margin: 3px;
    padding: 3px 8px;
    text-decoration: none;
    color: #FFF;
}

.isotope-pager .active {
background-color: #2671ca;
}
    