.pp_tile_container, .pp_found_tile_container {
  display: grid;
  gap: 10px;
  padding: 10px;
}

.pp_tile {
  width: 100%;
  text-align:center;
  line-height:1.2em;
  font-size:0.9em;
  padding-bottom:1em;
}

.pp_tile a {text-decoration:none}

/* Default: One column for screens less than 500px */
.pp_tile_container, .pp_found_tile_container {
  grid-template-columns: 1fr;
}

.pp_image_frame {position:relative}
.pp_hero_image { aspect-ratio: 1 / 1; width:100%; object-fit:cover; border-radius:10px}

.pp_tile_name {
  text-decoration: none;
  font-size:1.5em;
  font-weight:bold;
  margin-top:20px;
  margin-bottom:5px;
}


.pp_image_frame {
  position: relative;
}

.pp_image_frame .pp_hero_image {
  transition: filter 0.3s ease, transform 0.3s ease;
}

.pp_image_frame:hover .pp_hero_image,
.pp_image_frame .pp_tile_name:hover ~ .pp_hero_image {
  filter: brightness(1.2) saturate(1.2);
  transform: scale(1.05);
}


.pp_vol_img {
  width:100px;
  padding-right:5px;
}
.pp_vol_img:last-child {
  padding-right: 0; /* Remove padding for the last item */
}


.xpp_tile_name {
  position: absolute;
  bottom: 12px; /* Adjust this value to position the name closer or further from the bottom */
  left: 0;
  right: 0;
  text-align: center;
  color: white;
  font-size: 24px; /* Adjust as needed */
  font-weight: bold;
  padding: 0px;
  
  /* Text outline effect */
  text-shadow: 
    -1px -1px 0 #000,
    1px -1px 0 #000,
    -1px 1px 0 #000,
    1px 1px 0 #000;
}

.xpp_inline_content {
  bottom: 12px;
  line-height:1em;
  padding-top:5px;
}

.pp_inline_content {
  padding-top:5px;
}


.pp_video_icon{margin-left:5px; color:#999}


.pp_featured_item {
  display: flex;
  align-items: center;
}

.pp_featured_item_image_cell, 
.pp_featured_item_data_cell {
  flex: 1; /* Each will take up equal space (50%) */
  box-sizing: border-box; /* Ensure padding and border are included in width calculation */
  padding: 0 10px; /* Optional padding for spacing */
}



.pp_featured_item_data_cell {
  /* Optional: Add styling specific to the data cell */
  vertical-align: top;
  text-align:left;
}


/* Three columns for screens 600px and above */
@media (min-width: 600px) {
  .pp_tile_container, .pp_found_tile_container {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Four columns for screens 800px and above */
@media (min-width: 800px) {
  .pp_tile_container {
    grid-template-columns: repeat(4, 1fr);
  }
  .pp_found_tile_container {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Five columns for screens 1100px and above 
@media (min-width: 1100px) {
  .pp_tile_container {
    grid-template-columns: repeat(5, 1fr);
  }
}
*/

.pp_found_data {line-height: 1em;}
.pp_fname {line-height:1em; text-align:center; margin:.3em 0}
.pp_details {font-size:.8em}

.pp_photo_container {
  /*
display: flex;
justify-content: space-between;
align-items:center;
*/
display: flex;
    justify-content: space-between; /* Keeps space between the divs */
    align-items: center; /* Center images vertically */
    gap: 10px; /* Optional: space between the images */
}

.pp_photo_div {
  /*
flex: 1;
margin-right: 10px;
margin-bottom:10px;
*/
flex: 1; /* Makes the divs take up equal space */
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    padding-bottom:10px;
}

.pp_photo_div:last-child {
margin-right: 0;
}

.pp_lightbox_trigger {
  /*
width: 100%;
height: auto;
display: block;
object-fit:cover;
*/
width: 100%; /* Make the images fill the width of their container */
    height: 100%; /* Forces the image to fill the container vertically */
    object-fit: cover; /* Crops the image to maintain aspect ratio and cover the area */
    aspect-ratio: 1 / 1; 
}

.pp_ytvideo 
{
  padding-top:56.25%;
  position:relative;
  margin-bottom:20px;
}
.pp_ytvideo iframe
{
  position:absolute;top:0;left:0;
  width:100%;
  height:100%;
  
}



#pp_lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
z-index: 3;
}

#pp_lightbox img {
  max-width: 80%;
  max-height: 80%;
  display: block;
  margin: auto;
  margin-top: 20%;
z-index: 4;
}

#pp_lightbox_close_btn, #pp_lightbox_prev_btn, #pp_lightbox_next_btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: white;
  font-size: 30px;
  cursor: pointer;
  padding:2em;
}

#pp_lightbox_close_btn {
  top:10px;
  right: 10px;
}

#pp_lightbox_prev_btn {
  left: 10px;
}

#pp_lightbox_next_btn {
  right: 10px;
}

.pp_hidden_tile
{
  display:none;
}
.pp_shown_tile{
  display:block;
}

#pp_sort_btn_container
{
  display:flex;
}

.pp_sort_btn {
  display: inline;
  margin-right: 10px;
 flex:1;

}




#pp_jumpto {
  display: flex;           
  justify-content: center; 
margin-bottom: 1em;
}

.pp_select, .pp_button {
box-shadow:inset 0px 1px 0px 0px #ffffff;
background:linear-gradient(to bottom, #ffffff 5%, #f6f6f6 100%);
background-color:#ffffff;
border-radius:6px;
border:1px solid #dcdcdc;
display:inline-block;
cursor:pointer;
color:#666666;
font-family:Arial;
font-size:1em;
font-weight:bold;
padding:6px 20px;
text-decoration:none;
text-shadow:0px 1px 0px #ffffff;
}


#pp_listingnumbers {text-align:center}

#show_more_tiles {
display: block; /* or inline-block */
margin-left: auto;
margin-right: auto;
}

/* Remove margin from the last button */
.pp_sort_btn:last-child {
  margin-right: 0;
}

.pp_stickie1_img { position: absolute;
top: 00%;
left: 0;
right: 0;
width:80px;}
.pp_stickie2_img {position: absolute;
top: 0;
left: calc(100% - 100px);
right: 000px;
width:80px;}    
.pp_stickie3_img {position: absolute;
top:50px;
left: calc(100% - 100px);
width:80px;}

#pp_powered_by_link {
  text-align:center;
  margin:2em auto;
  font-size: 0.6em;
}