/* ######################## */
/* PAGE WHO                 */
/* ######################## */

/* 

   Created by: Jon Doe for r0n.cc
   Copyright Notice: This document is copyleft;

*/

/* ######################## */
/* WHO PAGE FORMAT          */
/* ######################## */

.Home_Format
{
    width: 100%;
    height: auto;
    min-height: 400px;
    list-style: none;
    display: flex;
}

.Home_Format li
{
    display:inline-block;
    height:auto;
    vertical-align: top;
}

.Home_Item_Gallery
{
    flex: auto;
    margin-bottom:0px!important;
}

/* ######################## */
/* CSS ITEM GALLERY         */
/* ######################## */

.Item_Gallery 
{
    min-width:100%;
    max-width:100%;
    list-style: none;
    font-size:0;
    display: -webkit-box;
    display: -webkit-flex;
    display: -moz-box;
    display: -ms-flexbox;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    flex-direction: row;
}

.Item_Gallery li
{
    flex-grow: 1;
    flex-shrink: 1;
    flex-basis: auto;
	display: flex; /* Ensure image is positioned correctly */
    justify-content: center;
    align-items: center;
    align-self: center!important;
    margin-bottom: 5px!important;
    margin-right: 2.5px;
    margin-left: 2.5px;
    padding: 2.5px;
}

.Item_Gallery li img {
    height: 100%; /* Match the height of the container */
    width: auto; /* Maintain aspect ratio dynamically */
    display: block; /* Prevents inline spacing issues */
}

.Item_Gallery li:last-child
{
  flex-grow: 0;
  border:none; 
  background: transparent;
}

.Item_Gallery li:last-child:hover
{
  background:transparent;
  border:none;
}

.Item_Gallery li:hover
{
/*    transition: 0.3s;*/
/*    background:#dfe1e5!important;*/
/*    border:1px solid #222321;*/
}

/*--------------------------*/

.Item_Gallery a
{
    display: block;
    min-width: 100% !important;
    max-width: 100% !important;
    min-height: 100% !important;
    max-height: 100% !important;
    overflow: hidden;
}

.Generic_Title_Box
{
    min-height: 37px;
    display: flex;
    flex-direction: row;
    margin-bottom: 0px;
}

.Generic_Title_Box li
{
    margin: 0 0 0 0;
    padding: 5px;
}

.Generic_Title_Box_Txt
{
    flex-grow: 1;
    flex-shrink: 1;
}

.Generic_Title_Box_Btn
{
    width: 52px!important;
}

/*--------------------------*/

.Item_Format
{
    display:flex;
    flex-direction: column;
    min-height: 100%!important;
    min-width: 100%;
}

.Item_Format_Img img
{
    min-width: 100% !important;
    max-width: 100% !important;
    height:170px!important;
    border:1px solid #dfe1e5;
}

.Item_Format_Properties
{
    display: -webkit-box!important;
    display: -webkit-flex!important;
    display: -moz-box!important;
    display: -ms-flexbox!important;
    display: flex!important;
    flex-direction: column;
    margin-top: 5px;
}

.Item_Format_Properties li
{
    flex-grow: 1;
    flex-shrink: 1;
    flex-basis: auto;
    list-style: none;
    margin: 0px!important;
    padding: 0px!important;
}

.Item_Format_Properties_Txt
{
    flex-grow: 1;
    font-size:11px;
    font-weight: bold;
    color: black;
    background: transparent;
    border-top: none;
    padding-left: 10px;
    margin: 0px!important;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    max-height: 32px;
}

.Item_Format_Properties_Owner
{
    font-size: 12px;
    color: #606060;
}

.Item_Format_Properties_Owner span
{
    padding-left: 35px;
}

/*--------------------------*/

.View_More_Button
{
    font-size: 13px;
    padding: 5px;
	margin-right: 0px;
}

.View_More_Box
{
    list-style:none;
    display:block;
    height:auto;
}

.View_More_Box li
{
    display:block;
    height:auto;
}

/* ######################## */
/* GRID CONTAINER           */
/* ######################## */

.Grid_Gallery 
{
    box-sizing: border-box;
    display: grid;
    min-width:100%;
    max-width:100%;
    list-style: none;
    font-size:0;
    padding-right: 2.5px;
}

.Grid_Gallery li
{
    box-sizing: border-box;
    height:auto;
    margin-bottom: 5px!important;
    margin-right: 2.5px;
    margin-left: 2.5px;
    padding: 2.5px;
    display: flex;
}

@media only screen and (min-width: 200px) and (max-width: 375px)
{
    .Grid_Gallery
    {
        grid-template-columns: 50% 50%;
    }
    
    .Grid_Book_Gallery
    {
        grid-template-columns:  33.33% 33.33% 33.33%;
    }
    
    .Home_Item_Gallery
    {
        margin-left: 0;
    }
    
    .Item_Format_Properties_Img
    {
        display: none;
    }
    
    .Item_Format_Properties_Owner span, .Item_Format_Properties_Txt
    {
        padding-left: 0px;
    }
}

@media only screen and (min-width: 376px) and (max-width: 1000px) 
{
    .Grid_Gallery
    {
        grid-template-columns:  33.33% 33.33% 33.33%;
    }
            
    .Grid_Book_Gallery
    {
        grid-template-columns: 25% 25% 25% 25%;
    }
    
    .Home_Item_Gallery
    {
        margin-left: 0;
    }
    
        .Item_Format_Properties_Img
    {
        display: none;
    }
    
    .Item_Format_Properties_Owner span, .Item_Format_Properties_Txt
    {
        padding-left: 0px;
    }
}

@media only screen and (min-width: 1001px) and (max-width: 1200px)
{
    .Grid_Gallery
    {
        grid-template-columns:  25% 25% 25% 25%;
    }
    
    .Grid_Book_Gallery
    {
        grid-template-columns: 25% 25% 25% 25%;
    }
}

@media only screen and (min-width: 1201px) and (max-width: 1440px)
{
    .Grid_Gallery
    {
        grid-template-columns:  25% 25% 25% 25%;
    }
    
    .Grid_Book_Gallery
    {
        grid-template-columns: 20% 20% 20% 20% 20%;
    }
}

@media only screen and (min-width: 1441px) and (max-width: 1920px) 
{
    .Grid_Gallery
    {
        grid-template-columns: 14.28% 14.28% 14.28% 14.28% 14.28% 14.28% 14.28%;
    }
    
    .Grid_Book_Gallery
    {
        grid-template-columns: 12.5% 12.5% 12.5% 12.5% 12.5% 12.5% 12.5% 12.5%;
    }
}

@media only screen and (min-width: 1921px) and (max-width: 4000px) 
{
    .Grid_Gallery
    {
        grid-template-columns: 14.28% 14.28% 14.28% 14.28% 14.28% 14.28% 14.28%;
    }
}

.Grid_Format_Img img
{
    height:auto!important;
}

.Empty_Container
{
    width: 100%!important;
}

.Empty_Container p
{
    font-size: 14px;
}

.Empty_Container img
{
    border: none!important;
}

.Grid_Gallery a
{
    min-height: 100%;
    max-height:100%;
    min-width: 100%;
    max-width:100%;
}

/* ######################## */
/* WHO TABLES               */
/* ######################## */

.Visitor_Stats, 
.Gender_Stats, 
.Flavour_Stats, 
.Country_Stats
{
    font-size:11px;
    border-collapse: collapse;
    border-spacing: 0;
    border: 1px solid #ddd;
    font-family: Arial, Helvetica, sans-serif;
    table-layout: fixed;
    width: 100%; 
    margin-bottom: 5px;
}

.Visitor_Stats tr:nth-child(2n), 
.Gender_Stats tr:nth-child(2n), 
.Flavour_Stats tr:nth-child(2n), 
.Country_Stats tr:nth-child(2n)
{
    background-color: #f1f1f1;
}

.Visitor_Stats tr, 
.Gender_Stats tr, 
.Flavour_Stats tr, 
.Country_Stats tr
{
    border-bottom: 1px solid #ddd;
    
}

.Visitor_Stats td, 
.Gender_Stats td, 
.Flavour_Stats td, 
.Country_Stats td
{
    padding:8px;
    white-space: nowrap;
}

.Visitor_Stats_Heading th, 
.Gender_Stats_Heading th, 
.Flavour_Stats_Heading th, 
.Country_Stats_Heading th
{
    background-color: black; 
    color:white; 
    text-transform: uppercase;
    padding:10px;
    text-align: left;
}

.Center_Collumn
{
    text-align: center!important;
}

.Index_Collumn, 
.Count_Collumn, 
.Flag_Collumn, 
.Gender_Collumn
{
    width:40px!important;
}

.hoverable_item:hover
{
    background:#dfe1e5!important;
    cursor: pointer;
    transition: 0.3s;
}

.Visitor_Stats_Item span, .Gender_Stats_Item span, .Flavour_Stats_Item span, .Country_Stats span
{
    display:block;
}

.Visitor_Country_Format
{
    display:flex;
}

.Visitor_Country, .Visitor_Flag
{
    display:inline-block;
    vertical-align:top;
}

.Visitor_Country
{
    text-align: left;
    margin-left:10px;
    line-height:20px;
}

.Gender_Image_Container, 
.Flavour_Image_Container,
.Country_Image_Container
{
    width:40px;
}

.Gender_Image_Container img, 
.Flavour_Image_Container img
{
    width: 100%;
    height:100%;
}

.Gender_Image, 
.Gender_Image span, 
.Flavour_Image, 
.Flavour_Image span
{
    width:30px;
    height:30px;
}

.Gender_Container
{
    text-align: left;
}

.Count_Collumn
{
    width:100px;
    text-align:center;
}