/*
Theme Name: Divi Child by Divi Extended
Theme URI: https://diviextended.com/divi-child-themes/
Description: A starter child theme for Divi, built with best practices. Generated with Divi Extended Child Theme Generator.
Author: Divi Extended
Author URI: https://elicus.com/
Template: Divi
Version: 1.0.0
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: divi-child
Domain Path: /languages
*/

/* Generated with Divi Extended Child Theme Generator
   https://diviextended.com/divi-child-theme-generator/ */


/* ==========================================================================
   Global Styles
   General resets, box model, body defaults, links, and utility classes.
   ========================================================================== */

/* Add your global styles below */
.portfolio-pagination {
    display: flex;
    justify-content: flex-end; /* Right-aligned on desktop */
    margin-top: 2.5rem;
}

.portfolio-pagination ul.page-numbers {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.portfolio-pagination ul.page-numbers li {
    display: inline-flex;
    align-items: center;
}

/* Pipe separator between page items */
.portfolio-pagination ul.page-numbers li:not(:last-child)::after {
    content: "|";
    margin: 0 0.75rem;
    color: #111111;
    font-weight: 300;
    pointer-events: none;
}

.portfolio-pagination ul.page-numbers a,
.portfolio-pagination ul.page-numbers span {
    text-decoration: none;
    color: #111111;
    font-size: 1.05rem;
    line-height: 1;
    transition: opacity 0.2s ease, color 0.2s ease;
}

.portfolio-pagination ul.page-numbers a:hover {
    opacity: 0.65;
}

/* Active page styling */
.portfolio-pagination ul.page-numbers span.current {
    color: #0f3d3e; /* Adjust to match your exact accent/teal shade */
    font-weight: 600;
}

/* Mobile: centered */
@media (max-width: 767px) {
    .portfolio-pagination {
        justify-content: center;
    }

    .portfolio-pagination ul.page-numbers li:not(:last-child)::after {
        margin: 0 0.6rem;
    }
}

/* ==========================================================================
   Typography
   Headings (h1-h6), paragraphs, blockquotes, lists, and font overrides.
   ========================================================================== */

/* Add your typography styles below */


/* ==========================================================================
   Header & Navigation
   Main header, logo, primary menu, mobile menu, top header bar.
   ========================================================================== */

/* Add your header styles below */
header .et_pb_menu__logo img,
header .et_pb_image_wrap img,
header #logo {
  max-width: 381px !important;
  width: 100% !important;
  height: auto !important;
}

/* ==========================================================================
   Footer
   Footer widgets, footer menu, bottom bar, copyright area.
   ========================================================================== */

/* Add your footer styles below */


/* ==========================================================================
   Blog & Archive
   Blog listing, archive pages, category pages, search results, pagination.
   ========================================================================== */

/* Add your blog styles below */


/* ==========================================================================
   Single Post
   Post title, meta, featured image, content area, author box, related posts.
   ========================================================================== */

/* Add your single post styles below */


/* ==========================================================================
   Single Page
   Default page template, full-width page, landing pages.
   ========================================================================== */

/* Add your single page styles below */
/* Gap = 20px, row height = 280px. Change these numbers directly if needed. */
.pg-grid {
  display: grid;
  grid-template-columns: calc((100% - 40px) / 3) calc((100% - 40px) / 3) calc((100% - 40px) / 3);
  grid-template-rows: calc((100% - 20px) / 2) calc((100% - 20px) / 2);
  grid-gap: 20px;
  gap: 20px;
	height: 715px;
}
.pg-item {
  padding: 0; border: 0; background: none; cursor: pointer;
  overflow: hidden; display: block;
  width: 100%; height: 100%;
}
.pg-item img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .3s;
}
.pg-item:hover img { transform: scale(1.03); }

/* 4-image layout: big left, 2 small top right, 1 wide bottom right */
.pg-count-4 .pg-item:nth-child(1) { grid-row: 1 / 3; grid-column: 1; }
.pg-count-4 .pg-item:nth-child(2) { grid-row: 1; grid-column: 2; }
.pg-count-4 .pg-item:nth-child(3) { grid-row: 1; grid-column: 3; }
.pg-count-4 .pg-item:nth-child(4) { grid-row: 2; grid-column: 2 / 4; }

@media (max-width: 767px) {
  .pg-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    height: auto;
    grid-gap: 0;
    gap: 20px;
  }
  .pg-grid .pg-item {
    flex: 0 0 auto;
    width: 300px;
    max-width: 100%;
    height: 232px;
  }
}

/* Modal */
.pg-modal {
  position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 999999;
/*   background: rgba(0,0,0,.75); */
	background: #fff;
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.pg-modal[hidden] { display: none; }
.pg-modal__box {
  position: relative; display: flex; width: 100%; max-width: 900px;
  max-height: 90vh; background: #f0f0f0; overflow: hidden;
}
.pg-modal__text {
  flex: 1 1 50%; padding: 50px 40px; overflow-y: auto; align-self: center;
  max-height: 90vh;
}
.pg-modal__text h2 { margin: 0 0 15px; font-size: 26px; line-height: 1.2; }
.pg-modal__text .pg-sub { font-size: 15px; }
.pg-modal__text hr { border: 0; border-top: 1px solid #9db3a8; margin: 20px 0; }
.pg-modal__img { flex: 1 1 50%; }
.pg-modal__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pg-modal__close {
  position: absolute; top: 10px; right: 18px; z-index: 2;
  background: none; border: 0; color: #fff; font-size: 36px; cursor: pointer; line-height: 1;
}

/* Image-only mode */
.pg-modal.image-only .pg-modal__text { display: none; }
.pg-modal.image-only .pg-modal__box { width: auto; max-width: 90vw; background: none; }
.pg-modal.image-only .pg-modal__img { flex: 0 1 auto; }
.pg-modal.image-only .pg-modal__img img { max-height: 90vh; width: auto; max-width: 90vw; object-fit: contain; }

@media (max-width: 767px) {
  .pg-modal__box { flex-direction: column-reverse; overflow-y: auto; }
  .pg-modal__img { flex: 0 0 auto; max-height: 40vh; }
  .pg-modal__text { flex: 0 0 auto; padding: 25px; max-height: none; }
}

/* ==========================================================================
   Sidebar & Widgets
   Widget areas, widget titles, default WordPress widgets, custom widgets.
   ========================================================================== */

/* Add your sidebar styles below */


/* ==========================================================================
   Responsive / Media Queries
   Breakpoint-specific overrides for tablet and mobile.
   ========================================================================== */

/* Tablet (max-width: 980px) */
@media only screen and (max-width: 980px) {

}

/* Mobile (max-width: 767px) */
@media only screen and (max-width: 767px) {

}

