 /* FONTS */
.roboto-<uniquifier> {
  font-family: "Roboto", sans-serif;
  font-optical-sizing: auto;
  font-weight: <weight>;
  font-style: normal;
  font-variation-settings:
    "wdth" 100;
}
body {
    font-family: "Roboto", Arial, sans-serif;
    font-optical-sizing: auto;
	font-weight: 400;
    font-style: normal;
    font-variation-settings:
      "wdth" 100;
}
strong, b {
    font-weight: 700; /* Use the bold weight */
}
em, i {
    font-style: italic; /* Use the italic style */
}
strong em, em strong, b i, i b {
    font-weight: 700;
    font-style: italic; /* This combination will trigger the bold-italic variant provided by Google Fonts */
}
.gdlr-blog-full .gdlr-blog-title {
	font-weight: 500;
	font-family: "Libre Baskerville", Arial, sans-serif !important;
}

h1,h2,h3,h4,h5, .gdlr-main-menu {
	 font-family: "Libre Baskerville", Arial, sans-serif;
}

/* HACKY DESIGN CHANGES */

/*.container {width:140%; transform: translate(5%,0%);}
.sidebar-right-item {transform: translate(-280%,0%);}
*/

body p { text-align: justify; color: #1A1A1A;}

/*
.gdlr-logo {padding-left:21.5%;}

#blog-pager {transform: translate(5.5%,0%);}
*/

body > .skiptranslate {
    display: none !important;
}

ul, li, pre, code { text-align: justify; color: #333333;}

a { color:#3333EE;}

/*
.gdlr-blog-full .blog-content-inner-wrapper { padding-right: 100px;}
*/

/* Hide search box */
#swid { display:none; }

.center {
	display:block;
	margin: 0 auto;
}
.icon-user {
	display:none;
}

.gdlr-blog-full .gdlr-blog-info {
	line-height: 1;
}

 media (min-width: 769px) {
	.container {
		max-width: 75vw !important;
	}
}

 @media (max-width: 768px) {
	.container {
		max-width: 95vw !important;
	}
}

 media only screen and (max-width: 419px) {
  body .container {
    max-width: 95vw !important;
  }
}
/*.blog-date-wrapper, .gdlr-title-font { 
	width: 4% !important;}
*/

.blog-pager-older-link, .blog-pager-newer-link, .home-link
{
	background-color:#FAFAFA;
	border-color: #666666;
	border-style: solid;
	border-width: 2px;
}

/* NAVIGATION BUTTON FOOTER */

/* Styling for the blog pager container */

.blog-pager * { box-sizing: border-box; }

.blog-pager { 
    padding: 1.5rem;
    background-color: #ffffff; /* White background for the pager */
	border-bottom-left-radius: 0.25rem;
	border-bottom-right-radius: 0.25rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05); /* Subtle shadow */
    max-width: 100%; /* Max width for responsiveness */
    
}

/* Styling for the anchor tags (buttons) */
.blog-pager a {
     /* Use flexbox for icon and text alignment */
    align-items: center; /* Vertically align items */
    padding: 0.75rem 1.25rem; /* Padding for button size */
    border-radius: 0.25rem; /* Made way less round */
    font-weight: 600; /* Semi-bold text */
    text-decoration: none; /* No underline */
    transition: all 0.3s ease; /* Smooth transitions for hover effects */
    white-space: nowrap; /* Prevent text wrapping inside buttons */
    font-size: 0.95rem; /* Slightly larger font size */
}

/* Specific styles for the "Previous Article" button */
.blog-pager-newer-link {
    background-color: #EEE; /* Indigo 600 */
    color: #ffffff; /* White text */
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06); /* Shadow */
}

.blog-pager-newer-link:hover {
    background-color: #262626; /* Darker indigo on hover */
    transform: translateY(-2px); /* Slight lift effect */
    box-shadow: 0 6px 10px -1px rgba(0, 0, 0, 0.15), 0 3px 6px -1px rgba(0, 0, 0, 0.08); /* Enhanced shadow */
    color: #EEEEEE !important;
}

/* Specific styles for the "Next Article" button */
.blog-pager-older-link {
    background-color: #EEE; /* Emerald 500 */
    color: #ffffff; /* White text */
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06); /* Shadow */
}

.blog-pager-older-link:hover {
    background-color: #262626; /* Darker emerald on hover */
    transform: translateY(-2px); /* Slight lift effect */
    box-shadow: 0 6px 10px -1px rgba(0, 0, 0, 0.15), 0 3px 6px -1px rgba(0, 0, 0, 0.08); /* Enhanced shadow */
    color: #EEEEEE !important;
}

/* Specific styles for the "Home" button */
.home-link {
    background-color: #EEE; /* Gray 500 */
    color: #ffffff; /* White text */
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06); /* Shadow */
}

.home-link:hover {
    background-color: #262626; /* Darker gray on hover */
    transform: translateY(-2px); /* Slight lift effect */
    box-shadow: 0 6px 10px -1px rgba(0, 0, 0, 0.15), 0 3px 6px -1px rgba(0, 0, 0, 0.08); /* Enhanced shadow */
    color: #EEEEEE !important;
    
}

/* Icon spacing */
.blog-pager a i {
    margin-right: 0.5rem; /* Space after left icon */
    margin-left: 0.5rem; /* Space before right icon */
}

/* Responsive adjustments for smaller screens */
@media (max-width: 640px) {
    .blog-pager {
      display: flex;
      flex-direction: column; /* Stack buttons vertically on small screens */
      align-items: stretch; /* Stretch buttons to full width */
      max-width:100%;
    }

    .blog-pager a {
  	  display:flex;
      justify-content: center; /* Center text and icon in stacked buttons */
      width: 100%; /* Full width for stacked buttons */
    }
}

ul li {
  line-height: 1.2;
  padding: .25em 0;
}

.two-images-side-by-side0 {
        display: flex;
        justify-content: space-between;
        flex-wrap: nowrap;
}

.two-images-side-by-side0 a {
    /* Define sizing for the child images */
    max-width: 45%;
    /* Ensure the height property doesn't distort the image */
    object-fit: contain;
    margin-bottom:20px;
    
}

.two-images-side-by-side0 a img {
    /* Image should take up 100% of its new parent (the anchor) */
    width: 100%; 
    /* Remove fixed height to let the image scale proportionally */
    height: auto; 
    /* You can use a max-height here if you need to limit the vertical size */
    max-height: 230px;
    
    /* Ensure the width property doesn't distort the image */
    object-fit: contain;
}

.two-images-side-by-side1 {
	display: flex;
	justify-content: space-between;
	flex-wrap: nowrap;
}

.two-images-side-by-side1 a {
    /* Define sizing for the child images */
    max-width: 45%;
    /* Ensure the height property doesn't distort the image */
    object-fit: contain;
    margin-bottom:20px; 
}

.two-images-side-by-side1 a img {
    /* Image should take up 100% of its new parent (the anchor) */
    width: 100%; 
    /* Remove fixed height to let the image scale proportionally */
    height: auto; 
    /* You can use a max-height here if you need to limit the vertical size */
    max-height: 300px; 
    
    /* Ensure the width property doesn't distort the image */
    object-fit: contain;
}

.two-images-side-by-side2 {
        display: flex;
        justify-content: space-between;
        flex-wrap: nowrap;
        
}

.two-images-side-by-side2 a {
    /* Define sizing for the child images */
    max-width: 45%;
    /* Ensure the height property doesn't distort the image */
    object-fit: contain;
    margin-bottom:20px;
}

.two-images-side-by-side2 a img {
    /* Image should take up 100% of its new parent (the anchor) */
    width: 100%; 
    /* Remove fixed height to let the image scale proportionally */
    height: auto; 
    /* You can use a max-height here if you need to limit the vertical size */
    max-height: 350px; 
    
    /* Ensure the width property doesn't distort the image */
    object-fit: contain;
}

.two-images-side-by-side3 {
        display: flex;
        justify-content: space-between;
        flex-wrap: nowrap;
}

.two-images-side-by-side3 a {
    /* Define sizing for the child images */
    max-width: 45%;
    /* Ensure the height property doesn't distort the image */
    object-fit: contain;
    margin-bottom:20px;
}

.two-images-side-by-side0 a img {
    /* Image should take up 100% of its new parent (the anchor) */
    width: 100%; 
    /* Remove fixed height to let the image scale proportionally */
    height: auto; 
    /* You can use a max-height here if you need to limit the vertical size */
    max-height: 500px; 
    
    /* Ensure the width property doesn't distort the image */
    object-fit: contain;
}

.small-img img {
	height:300px;
	max-width:100%;
	object-fit: cover;
	display: block;
	margin-left: auto;
	margin-right: auto;
}

.middle-text {
	text-align: center;
}

.middle-italic-text{
	text-align: center;
	font-style: italic;
	color: #1a1a1a;
}

#ipChart {
	height: 75vh !important;
}

/* GALLERY PART */
/* GALLERY PART */
/* GALLERY PART */

/* --- Desktop: 5 Columns (Final Structural Fix: No max-height) --- */
.image-gallery-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr); 
    gap: 15px; 
    margin-top: 20px;
    /* Aligns caption text horizontally across the row */
    align-items: end; 
}

.gallery-item {
    margin: 0;
    overflow: hidden;
    border: none; 
    padding: 0; 
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.gallery-item a {
    display: flex;
    /* Vertically center the image within the link box to distribute any remaining white space */
    align-items: center; 
    justify-content: center;
    
    width: 100%;
    margin-bottom: 5px; 
    border: 1px solid #ddd;
    padding: 3px;
    flex-grow: 1; 
    
    /* REMOVED background-color: #f4f4f4; */
}

.gallery-item img {
    /* Image scaling rules */
    width: 100%;
    height: auto; 
    
    /* CRITICAL CHANGE: REMOVED max-height property. */
    /* This allows the images to take up the full available vertical space until width hits 100%, 
       minimizing the white space dramatically for wide images. */
    
    object-fit: contain; /* NO CROPPING */
    display: block;
    
    /* Remove absolute/fixed positioning leftovers */
    position: static; 
    transform: none; 
}

.gallery-item figcaption {
    /* Caption styling */
    padding: 5px 0 5px;
    font-size: 0.9em;
    text-align: center;
    margin-top: auto; 
    width: 100%;
}
/* ... (Responsive media queries unchanged) ... */

/* --- Responsive Adjustments (Keep these for good mobile view) --- */
@media (max-width: 1200px) {
    .image-gallery-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}
@media (max-width: 900px) {
    .image-gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media (max-width: 600px) {
    .image-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 400px) {
    .image-gallery-grid {
        grid-template-columns: repeat(1, 1fr);
    }
}
