/* Specific styles for the image gallery */
.gallery-section {
    padding: 56px 0;
}

.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Responsive grid columns */
    grid-auto-rows: minmax(200px, auto); /* Minimum row height, auto-adjust */
    gap: 15px; /* Gap between grid items */
    margin-top: 30px;
}

.grid-item {
    overflow: hidden; /* Hide overflow for images */
    border-radius: var(--radius); /* Reuse main border-radius */
    box-shadow: var(--shadow-soft); /* Reuse main shadow */
    background: var(--card); /* Background for items, if image doesn't cover */
    border: 1px solid rgba(176, 176, 176, 0.15); /* Match card border */
    display: flex; /* For centering content */
    justify-content: center;
    align-items: center;
}

.grid-item img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Cover the area, cropping if necessary */
    display: block;
    transition: transform 0.3s ease;
}

.grid-item img:hover {
    transform: scale(1.05); /* Slight zoom on hover */
}

/* Specific sizing for different photo layouts */
.grid-item.wide {
    grid-column: span 2; /* Span two columns */
    grid-row: span 1;
}

.grid-item.tall {
    grid-row: span 2; /* Span two rows */
    grid-column: span 1;
}

/* Responsive navigation styles (copied from style.css for consistency) */
/* Mobile menu toggle */
.menu-toggle {
    display: none; /* Hidden by default on desktop */
    background: none;
    border: none;
    color: var(--text);
    font-size: 1.8rem;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

/* Desktop navigation links (ensuring they remain visible on desktop) */
.nav-links {
    display: flex;
    align-items: center;
    gap: 22px; /* Adjust as needed */
}

/* Adjust for smaller screens */
@media (max-width: 768px) {
    /* Show the hamburger menu toggle */
    .menu-toggle {
        display: block;
    }

    /* Hide the regular navigation and CTA button */
    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 100%; /* Position below the header */
        left: 0;
        background: var(--bg); /* Use your background color */
        border-top: 1px solid rgba(176, 176, 176, 0.1);
        box-shadow: var(--shadow-soft);
        padding: 15px 20px;
        box-sizing: border-box;
    }

    /* When menu is open, display nav-links */
    body.menu-open .nav-links {
        display: flex;
    }

    .nav-links nav ul {
        flex-direction: column;
        gap: 10px;
        width: 100%;
        padding-bottom: 10px;
        border-bottom: 1px solid rgba(176, 176, 176, 0.1);
        margin-bottom: 15px;
    }

    .nav-links nav ul li {
        width: 100%;
        text-align: center;
    }

    .nav-links nav ul li a {
        display: block;
        padding: 10px 0;
        width: 100%;
    }

    .nav-links .cta {
        width: 100%;
        text-align: center;
        margin-top: 10px;
    }

    /* Adjust image grid for smaller screens */
    .image-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        grid-auto-rows: minmax(150px, auto);
    }
    .grid-item.wide,
    .grid-item.tall {
        grid-column: span 1; /* On small screens, all items become single column */
        grid-row: span 1;
    }
}

@media (max-width: 480px) {
    .image-grid {
        grid-template-columns: 1fr; /* Single column layout on very small screens */
        grid-auto-rows: minmax(120px, auto);
    }
}

/* Existing footer styles (ensure variables like --bg-alt and --border are defined in style.css or here) */
footer {
  /* Using variables from style.css or defining fallback if pictures.css is loaded alone */
  background: var(--bg, #1a1a1a); /* Fallback if --bg-alt is not available */
  border-top: 1px solid var(--muted, rgba(176, 176, 176, 0.12)); /* Fallback if --border is not available */
  padding: 1rem 0;
  font-size: 0.9rem;
  color: var(--muted);
}

/* Social icon styles (moved here as they are also in pictures.css originally) */
@import url("https://fonts.googleapis.com/css2?family=Poppins&display=swap");

*:focus,
*:active {
  outline: none !important;
  -webkit-tap-highlight-color: transparent;
}

.wrapper {
  display: inline-flex;
  list-style: none;
}

.wrapper .icon {
  position: relative;
  background: #ffffff;
  border-radius: 50%;
  padding: 15px;
  margin: 10px;
  width: 50px;
  height: 50px;
  font-size: 18px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  box-shadow: 0 10px 10px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.wrapper .tooltip {
  position: absolute;
  top: 0;
  font-size: 14px;
  background: #ffffff;
  color: #ffffff;
  padding: 5px 8px;
  border-radius: 5px;
  box-shadow: 0 10px 10px rgba(0, 0, 0, 0.1);
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.wrapper .tooltip::before {
  position: absolute;
  content: "";
  height: 8px;
  width: 8px;
  background: #ffffff;
  bottom: -3px;
  left: 50%;
  transform: translate(-50%) rotate(45deg);
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.wrapper .icon:hover .tooltip {
  top: -45px;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.wrapper .icon:hover,
.wrapper .icon:hover .tooltip {
  text-shadow: 0px -1px 0px rgba(0, 0, 0, 0.1);
}

.wrapper .facebook:hover,
.wrapper .facebook:hover .tooltip,
.wrapper .facebook:hover .tooltip::before {
  background: #1877F2;
  color: #ffffff;
}

.wrapper .twitter:hover,
.wrapper .twitter:hover .tooltip,
.wrapper .twitter:hover .tooltip::before {
  background: #1DA1F2;
  color: #ffffff;
}

.wrapper .instagram:hover,
.wrapper .instagram:hover .tooltip,
.wrapper .instagram:hover .tooltip::before {
  background: #E4405F;
  color: #ffffff;
}

.wrapper .github:hover,
.wrapper .github:hover .tooltip,
.wrapper .github:hover .tooltip::before {
  background: #6e27ca;
  color: #ffffff;
}

.wrapper .youtube:hover,
.wrapper .youtube:hover .tooltip,
.wrapper .youtube:hover .tooltip::before {
  background: #CD201F;
  color: #ffffff;
}