/*!
Theme Name: ProperProjects
Theme URI: http://underscores.me/
Author: Underscores.me
Author URI: http://underscores.me/
Description: Description
Version: 1.0.0
Tested up to: 5.4
Requires PHP: 5.6
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: properprojects
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready

This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned.

ProperProjects is based on Underscores https://underscores.me/, (C) 2012-2020 Automattic, Inc.
Underscores is distributed under the terms of the GNU GPL v2 or later.

Normalizing styles have been helped along thanks to the fine work of
Nicolas Gallagher and Jonathan Neal https://necolas.github.io/normalize.css/
*/

/*--------------------------------------------------------------
>>> TABLE OF CONTENTS:
----------------------------------------------------------------
# Generic
	- Normalize
	- Box sizing
# Base
	- Typography
	- Elements
	- Links
	- Forms
## Layouts
# Components
	- Navigation
	- Posts and pages
	- Comments
	- Widgets
	- Media
	- Captions
	- Galleries
# plugins
	- Jetpack infinite scroll
# Utilities
	- Accessibility
	- Alignments

--------------------------------------------------------------*/

/*--------------------------------------------------------------
# Generic
--------------------------------------------------------------*/

/* Normalize
--------------------------------------------- */

/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */

/* Document
	 ========================================================================== */

.modal-overlay {
display: none;
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.7);
z-index: 1000;
}

.modal-container {
position: relative;
width: 90%;
max-width: 1200px;
margin: 40px auto;
height: calc(100vh - 80px);
}

.modal-close {
position: absolute;
right: -40px;
top: -40px;
background: none;
border: none;
color: white;
font-size: 32px;
cursor: pointer;
z-index: 1001;
}

.modal-content {
height: 100%;
display: flex;
align-items: center;
}

.modal-slider {
width: 100%;
}

.modal-slide {
padding: 0 10px;
}

.modal-slide img {
width: 100%;
height: auto;
max-height: 80vh;
object-fit: contain;
}

/* Optional: Add loading spinner */
.modal-overlay.loading::after {
content: '';
position: absolute;
top: 50%;
left: 50%;
width: 40px;
height: 40px;
margin: -20px 0 0 -20px;
border: 4px solid #f3f3f3;
border-top: 4px solid #3498db;
border-radius: 50%;
animation: spin 1s linear infinite;
}

@keyframes spin {
0% { transform: rotate(0deg); }
100% { transform: rotate(360deg); }
}
.modal-slider .slick-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 50px;
    height: 50px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
    color: transparent;
}

.modal-slider .slick-arrow:hover {
    background: rgba(255, 255, 255, 0.4);
}

/* Previous arrow */
.modal-slider .slick-prev {
    left: -60px;
}

.modal-slider .slick-prev:before {
    content: '';
    display: block;
    width: 12px;
    height: 12px;
    border-left: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(45deg);
    margin: 0 auto;
    margin-left: 15px;
    margin-top: 17px;
}

/* Next arrow */
.modal-slider .slick-next {
    right: -60px;
}

.modal-slider .slick-next:before {
    content: '';
    display: block;
    width: 12px;
    height: 12px;
    border-right: 2px solid #fff;
    border-top: 2px solid #fff;
    transform: rotate(45deg);
    margin: 0 auto;
    margin-right: 15px;
    margin-top: 17px;
}

@media (max-width: 768px) {
	.modal-close{
		top: 0;
		right: 0;
	}
	.modal-slider .slick-next {
		right:0;
	  }
	  .modal-slider .slick-prev {
		left:0;
	  }
}

.card-project .card__media{
	padding-top: 0;
}
body .section-contact .gform_footer{
	border:0;
}

.page-content section{
    position: relative;
    clear: both;
}
#contact,
#about{
    min-height: 300px;
    float: left;
    width: 100%;
}
.wrapper{
    height: 100%;
    min-height: auto !important;
    display: block;
}
body{
    height: auto !important;
}
.section-system:before{
    display: none !important;
}
.page-content{    counter-reset: none !important;}
@media screen and (max-width:640px) {
    .modal-container{
        margin: 0;
        width: 100%;
        height: 100%;
    }
    .modal-content{
        align-items: start;
    }
    .modal-close{
        font-size: 48px;
        right: 30px !important;
    }
    .modal-container .slick-arrow.slick-next {
        right: 26px;
    }
    .modal-container .slick-arrow.slick-prev{
        left:26px;
    }
    .modal-slider{
        max-height: 100% !important;
    }
    .modal-slide_card--desc{
        font-size: 14px;
    }
    .modal-slide.slick-slide{
        padding:0;
    }
    .modal-slider .slick-arrow{
        display: none !important;
    }
}