@import url('https://fonts.googleapis.com/css?family=Zilla Slab');

/* CSS Variables */
:root {
  --container-bg-color: #333;
  --left-bg-color: rgba(223, 39, 39, 0.7);
  --left-button-hover-color: rgba(161, 11, 11, 0.3);
  --right-bg-color: rgba(43, 43, 43, 0.8);
  --right-button-hover-color: rgba(38, 78, 110, 0.6);
  --hover-width: 75%;
  --other-width: 25%;
  --speed: 1000ms;
  --primary: #fafafa;
  --dark: #333;
  --yellow: #f6eaa9;
  --shadow: 0 1px 5px rgba(104, 104, 104, 0.8);
  --box-shadow: 0 10px 10px rgba(0,0,0,.1);
}

html {
  scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: #444;
    margin: 0 auto;
    max-width: 1080px;
    height: 100%;
    font-size: 1rem;
    line-height: 1.4;
    background-color: white;
}

.hero-bg {
    color: white;
    background:linear-gradient(rgba(197, 26, 80, 0.5),rgb(168, 43, 137)),url('minna-bw4.gif') no-repeat center right;
    background-size: 56%;
    border-radius: 8px;
}


header {
    padding: 1em 0;
}

section.top {
    margin: 1em 1em;
    padding: 3em 1em;
    background-color: transparent;
    position: relative;
}

.hero-bg a {
    color: white;
    text-decoration: underline;
    font-weight: bold;
}

section {
    padding: 2rem 1rem;
    margin: 1em 0;
    text-align: left;
    border-radius: 16px;
}

h1 {
    font-family: "Zilla Slab", sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 2.8rem;
    margin: .7em 0;
}

h1 span {
    display: block;
    font-size: 1.4rem;
    position: relative;
    z-index: 1;
}

h2 {
    font-family: "Zilla Slab", sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 2rem;
    margin-bottom: 1em;
}

.hero-bg p {
    font-weight: 400;
    width: 60%;
}

/* Hero sets in 2x-color 643 */
        .cta-button {
            background-color: #f2f2f2;
            border: none;
            border-radius: 6px;
            font-size: 16px;
            font-weight: 600;
            cursor: pointer;
            text-decoration: none;
            display: inline-block;
            transition: all 0.3s ease;
        }

        .cta-button:hover {
            color: white;
            background-color: #321e9f;
            transform: translateY(-1px);
            box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
        }

        .cta-button:active {
            transform: translateY(0);
            box-shadow: 0 2px 6px rgba(0, 123, 255, 0.3);
        }


/* Title 2-col */
.title-info {
  background: #fff;
  display: grid;
  grid-gap: 12px;
  grid-template-columns: repeat(2, 1fr);
  padding: 0rem 1rem;
  margin: 0;
}

.left-col {
    position: relative;
    padding: .5rem;
    background-color: #fff;
    background-image: linear-gradient(45deg, #ffffff 45.45%, #eeeeee 45.45%, #eeeeee 50%, #ffffff 50%, #ffffff 95.45%, #dddddd 95.45%, #dddddd 100%);
    background-size: 15.56px 15.56px;
}

.right-col {
    padding-top: 3rem;
    height: 100%; 
    background: #f6eaa9;
    background-size: cover;
}

/* Bulletpoints */

        .styled-list {
            list-style: disc;
            padding:  0 20px;
            margin: 0;
        }

        .styled-list li {
            position: relative;
            padding: 0;
            margin-bottom: 14px;
            font-size: 1em;
            line-height: 1.4;
            transition: all 0.3s ease;
        }


        .styled-list li strong {
            font-weight: 600;
        }

        @keyframes fadeInUp {
            from {
                opacity: 0;
                transform: translateY(20px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .styled-list li {
            animation: fadeInUp 0.6s ease forwards;
        }

        .styled-list li:nth-child(1) { animation-delay: 0.1s; }
        .styled-list li:nth-child(2) { animation-delay: 0.2s; }
        .styled-list li:nth-child(3) { animation-delay: 0.3s; }
        .styled-list li:nth-child(4) { animation-delay: 0.4s; }
        .styled-list li:nth-child(5) { animation-delay: 0.5s; }


/* Microsoft Rewards, o la la! */
.info {
background: #e1eef9;
background-image: linear-gradient(160deg, #fff 5%, #effcf5 25%, #C6E3F3 50%, #8DC8E8 100%);
background-size: 100% auto;
  display: grid;
  grid-gap: 2rem;
  grid-template-columns: repeat(auto-fill, minmax(20rem, 1fr));
  padding: 3rem 2rem;
  margin: 0rem auto;
  z-index:3; 
  position:relative;
  align-items: center; /* Vertically centers content */
  justify-content: center; /* Horizontally centers content (optional) */
}


/* Gallery Grid */
        .gallery {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(243px, 1fr));
            gap: 12px;
            max-width: 1200px;
            margin: 1rem auto;
            box-sizing: border-box; /* Ensure padding/borders are included */
            background-color:#C6E3F3;
            margin-top: 0rem;
            padding:3em;
            border-radius: 16px;
            border-top: 4px dashed #fff;
        }

/* Tablet */
@media (max-width: 768px) {
            .gallery {
             grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
             width: 100%;
             gap: 10px;
            }
    }

/* Mobile */        
        @media (max-width: 480px) {
            .gallery {
                grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
                width: 100%;
                gap: 8px;
            }

            .main-image {
                max-height: 50vh;
            }
    }


        .gallery img {
            width: 100%;
            height: 243px;
            object-fit: cover;
            border-radius: 8px;
            border: solid 1px #fff;
            cursor: pointer;
            transition: transform 0.3s ease, box-shadow 0.3s ease;
        }

        .gallery img:hover {
            transform: scale(1.02);
            box-shadow: 0 8px 16px rgba(0,0,0,0.2);
        }

        /* Modal Overlay */
        .modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.6);
            z-index: 1000;
            opacity: 0;
            transition: opacity 0.3s ease;
        }

        .modal.active {
            display: flex;
            opacity: 1;
            align-items: center;
            justify-content: center;
        }

        /* Modal Content */
        .modal-content {
            position: relative;
            max-width: 90vw;
            max-height: 90vh;
            background: white;
            border-radius: 12px;
            overflow: hidden;
            box-shadow: 0 20px 60px rgba(0,0,0,0.5);
            transform: scale(0.8);
            transition: transform 0.3s ease;
        }

        .modal.active .modal-content {
            transform: scale(1);
        }

        /* Main Image Container */
        .image-container {
            position: relative;
            display: flex;
            align-items: center;
            justify-content: center;
            background: #f2f2f2;
            min-height: 60vh;
        }

        .main-image {
            max-width: 83%;
            max-height: 70vh;
            border-radius: 16px;
            object-fit: contain;
            display: block;
        }

        /* Navigation Arrows */
        .nav-arrow {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            background: rgba(255, 255, 255, 0.9);
            border: none;
            width: 50px;
            height: 50px;
            border-radius: 50%;
            cursor: pointer;
            font-size: 20px;
            color: #333;
            transition: all 0.3s ease;
            z-index: 10;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .nav-arrow:hover {
            background: white;
            transform: translateY(-50%) scale(1.1);
            box-shadow: 0 4px 12px rgba(0,0,0,0.3);
        }

        .nav-arrow:focus {
            outline: 2px solid #007bff;
            outline-offset: 2px;
        }

        .prev-arrow {
            left: 10px;
        }

        .next-arrow {
            right: 10px;
        }

        /* Close Button */
        .close-btn {
            position: absolute;
            top: 15px;
            right: 15px;
            background: rgba(255, 255, 255, 0.9);
            border: none;
            width: 40px;
            height: 40px;
            border-radius: 50%;
            cursor: pointer;
            font-size: 24px;
            color: #333;
            z-index: 20;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .close-btn:hover {
            background: white;
            transform: scale(1.1);
        }

        .close-btn:focus {
            outline: 2px solid #007bff;
            outline-offset: 2px;
        }

        /* Image Info */
        .image-info {
            padding: 20px;
            background: white;
            text-align: center;
        }

        .image-counter {
            font-size: 14px;
            color: #666;
            margin-bottom: 10px;
        }

        .image-title {
            font-size: 18px;
            font-weight: 600;
            color: #333;
            margin-bottom: 8px;
        }

        .image-description {
            font-size: 14px;
            color: #666;
            line-height: 1.5;
        }

        /* Thumbnail Navigation */
        .thumbnail-nav {
            display: flex;
            gap: 8px;
            padding: 15px 20px;
            background: #f8f9fa;
            overflow-x: auto;
            scrollbar-width: thin;
        }

        .thumbnail-nav::-webkit-scrollbar {
            height: 4px;
        }

        .thumbnail-nav::-webkit-scrollbar-track {
            background: #e9ecef;
        }

        .thumbnail-nav::-webkit-scrollbar-thumb {
            background: #007bff;
            border-radius: 2px;
        }

        .thumbnail {
            flex: 0 0 60px;
            height: 45px;
            border-radius: 4px;
            cursor: pointer;
            object-fit: cover;
            border: 2px solid transparent;
            transition: all 0.3s ease;
        }

        .thumbnail:hover {
            border-color: #007bff;
            transform: scale(1.05);
        }

        .thumbnail.active {
            border-color: #007bff;
            box-shadow: 0 0 0 1px #007bff;
        }

        /* Loading Spinner */
        .loading {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            width: 40px;
            height: 40px;
            border: 3px solid rgba(255,255,255,0.3);
            border-top: 3px solid white;
            border-radius: 50%;
            animation: spin 1s linear infinite;
        }

        @keyframes spin {
            to { transform: translate(-50%, -50%) rotate(360deg); }
        }

        /* Mobile Responsiveness */
        @media (max-width: 768px) {
            .modal-content {
                max-width: 95vw;
                max-height: 95vh;
                margin: 10px;
            }

            .nav-arrow {
                width: 30px;
                height: 30px;
                font-size: 16px;
            }

            .prev-arrow {
                left: 10px;
            }

            .next-arrow {
                right: 10px;
            }

            .close-btn {
                top: 10px;
                right: 10px;
                width: 35px;
                height: 35px;
                font-size: 20px;
            }

            .image-info {
                padding: 15px;
            }

            .thumbnail-nav {
                padding: 10px 15px;
            }

            .thumbnail {
                flex: 0 0 50px;
                height: 40px;
            }
        }
/* Mobile */        
        @media (max-width: 480px) {

            .nav-arrow {display: none}
            
             .prev-arrow {
                left: 10px;
                display: none;
            }

            .next-arrow {
                right: 10px;
                display: none;
            }
    }


            .gallery img {
                height: auto;
                width: 100%;
            }

        /* Touch Support */
        .image-container {
            touch-action: pan-y;
        }

        /* Focus Styles for Accessibility */
        .gallery img:focus {
            outline: 2px solid #007bff;
            outline-offset: 2px;
        }

/* Favorite Works Cards CSS */

section.gallerycss {
    margin:0;
    padding: 2em;
    background-color: #f4f2ee;
}

main {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(236px, 1fr));
    grid-gap: 12px;
    max-width: 1100px;
    margin: 1rem auto;
}

@media (max-width: 768px) {
        main {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
            }
}

.card { 
    width: auto;
    border: 1px #eee solid;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 8px;
    }


.card img {
    width: 100%;
    border-radius: 8px;
    object-fit: cover;
    border: 1px #eee solid;
}
.card .c-info {
    padding: .7rem;
    font-size: .85rem;
}


/* TEXT EFFECTS ARE FUN FUN */
.text-large {font-size: 60px; margin: 2rem; grid-column: 1 / 3;}
.outlined1 {-webkit-text-stroke: 1px #999; color:transparent; text-transform: uppercase;}
.outlined {-webkit-text-stroke: 1px #666; color:transparent; text-transform: uppercase;}

#bg-text {
   top: 0;
   left: 0;
   bottom: 0;
   right: 0;
   margin-top: -30px;
   color: white;
   overflow: hidden;
  z-index:-2; 
  position:absolute;
    -webkit-transform: display: none; /* Safari */}

/* CONTACT FOOTER, #5055cb*/

.bg-orange1 {
    padding: 2rem;
    margin: 2rem auto;
    color: white;
    text-align: left;
    position: relative;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    grid-gap: 12px;
    max-width: 1200px;
}


.bg-orange1 a {
    color: rgb(214, 231, 255);
    padding: 2px;
    text-decoration: none;

}

.bg-orange1 a:hover {
    color: rgb(3, 78, 163);
    text-decoration: none;
    padding: 2px;
    background: rgba(248, 248, 248, 0.5);
}

.color-change-2x {
	-webkit-animation: color-change-2x 2s linear infinite alternate both;
	        animation: color-change-2x 2s linear infinite alternate both;
}

.color-change-2x a {
	color: #439ccc;
    padding: 8px;
    text-decoration: none;
}
.color-change-2x a:hover {
    color: rgb(3, 78, 163);
    text-decoration: none;
    padding: 8px;
    border-radius: 8px;
    background: rgba(248, 248, 248, 0.4);
}

/**
 * ----------------------------------------
 * animation color-change-2x
 * ----------------------------------------
 */
@-webkit-keyframes color-change-2x {
  0% {
    background: #C6E3F3;
  }
  100% {
    background: rgb(230, 186, 235);
  }
}


@-webkit-keyframes zoom {
  from {-webkit-transform:scale(0)} 
  to {-webkit-transform:scale(1)}
}

@keyframes zoom {
  from {transform:scale(0)} 
  to {transform:scale(1)}
}
