html {
    height: 100%;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    min-height: 100vh;    
}

header {
    margin: 0;
    padding: .8em 0;
    text-align: center;
    justify-content: center;
    background-image: linear-gradient(to right,
             rgba(0, 0, 0, .04),
             rgba(0, 0, 0, .14));
    border-bottom: 1px solid rgba(0, 0, 0, .2);
}


footer {
    margin: 0;
    background-image: linear-gradient(to left,
             rgba(0, 0, 0, .04),
             rgba(0, 0, 0, .14));
    margin-top: 1em;
    text-align: center;
    padding: 2em 0;
    line-height: 1;
    border-top: 1px solid rgba(0, 0, 0, .2);
}
a {
    color: white;
  }
  

#banner {
    margin: 0;
    background-image: url('/images/banner3.jpg');
    display: block;    
    background-repeat: no-repeat;
    background-size: cover;
    text-align: center;
    /* justify-content: center; */
    max-width: 100%;
    padding: 32px 0;
    margin-bottom: 1em;
    border-bottom: 1px solid rgba(0, 0, 0, .2);
}

.banner-logo {
    margin: 0;
    font-size: .7rem;
    color: rgb(250, 232, 213);
    /* font-weight: 500; */
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif ;
    /* outline: auto; */
}

.banner-logo span span {    
    color: white;
    font-weight: 500;
}


.logo {
    margin: 0;
    padding-left: .5em;
    padding-top: .5em;
    align-self: flex-start;
    font-size: 1.6rem;
    color: rgb(113, 113, 113);
    font-weight: 400;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    /* line-height: 1;
    background-image: url('/images/kumagai_Nagoya_Background_4482_04.jpg') ;
    background-size: cover;
    background-clip: text;
    color: transparent; */
}

.logo span span{
    color:rgb(32, 32, 32);
}

.profile {
    margin: 0;
    align-self: flex-start;
    justify-items: auto;
    width: 60px;
    height: 60px;
}

.copy {
    font-size: .7em;
    color: rgb(20, 20, 20);
    font-weight: 500;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

.btn {
    border: 5em;
    text-decoration: none;
    border-radius: 15px;
    display: inline-block;
    padding: .8em 1em;
    font-size: .8rem;
    /* text-transform: uppercase; */
    font-weight: 600;
    letter-spacing: 1px;
    border: 0;
    cursor: pointer;
    margin-top: .5em;
    color: white;
    background-color: rgb(121, 121, 121);
}

.btn:hover,
.btn:focus {
    /* transform: scale(1); */
    color: white;
    background-image: linear-gradient(to left,
            rgb(122, 122, 122),
            rgb(175, 173, 173));
    border: 1px solid rgba(0, 0, 0, .125);
}

.container-btn {
    margin: 1em auto;
    width: 50%;
    display: flex;
    flex-direction: row;
    justify-content: center;  
}

.container {
    width: 90%;
    max-width: 980px;
    margin: 0 auto;
}

.container-flex {
    display: flex;
    flex-direction: row;
}

.containerlink {
    margin: 0 auto;
    width: 50%;
    display: flex;
    flex-direction: row;
    justify-content: center;
}


img {
    border-top-left-radius: .6rem;
    border-top-right-radius: .6rem;
    border-bottom-left-radius: .6rem;
    border-bottom-right-radius: .6rem;
    max-width: 100%;
    min-width: 100%;
    min-height: 100%;
}

.icon {
    width: 55px;
    margin: .5em auto;
    /* padding: .25em 0 ; */
    /* padding-left: .25em;
    padding-right: .25em; */
    transform: scale(1);
    transition: transform 250ms;
}

.icon:hover,
.icon:focus {
    transform: scale(1.2);
}

.header-title {
    margin: 0;
    align-self: center;
    color: #bc8f8f;
}

.portfolio {
    display: grid;
    grid-template-columns: 98%;
    grid-gap: 1em;
    grid-template-areas: "small" "small" "small" "small" "large";
}

.porfolio-card-small {
    grid-area: small;
}

.portfolio-card-small {
    border: 1px solid rgba(0, 0, 0, .2);
    border-radius: .6rem;
    background: white;
    /* position: relative; */
}



.container-modal {
    width: 80%;
    max-width: 1280px;
    margin: 0 auto;
}

.container-flex {
    display: flex;
    flex-direction: row;
}

.containerlink {
    margin: 0 auto;
    width: 50%;
    display: flex;
    flex-direction: row;
    justify-content: center;
}


.modal-open {
    position: relative;
    outline: none;
    border: none;
    transform: scale(1);
    transition: transform 250ms;
}


.modal-open:hover,
.modal-open:focus {
    transform: scale(1.01);
    opacity: .8;
}


.modal-close {
    background: white;
    position: fixed;
    left: 1em;
    top: 1em;
    border: 0;
    width: 3em;
    height: 3em;
    padding: 4px 0 0;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2;
    display: none;
    animation: modal-open .5s;
}

.modal-content {
    position: fixed;
    z-index: 10;
    top: 2em;
    bottom: 2em;
    left: 2em;
    right: 2em;
    background: #343F4F;
    padding: 1em 1em;
    border-radius: 4px;
    justify-content: center;
    overflow-y: scroll;
    overflow-x: hidden;
}

.modal-header {
    color: whitesmoke;
    text-align: center;
    font-weight: 500;
    padding: 10px;
    font-size: 26px;
}

.modal-header .modal-close {
    float: right;
    font-size: 20px;
    background: #efefef;
    border: 0;
    outline: 0;
    padding: 5px 8px;
    border-radius: 50%;
}

.modal-gallery {
    display: grid;
    gap: .2rem;
    grid-template-columns: repeat(1, 1fr);
    /* color: #7b7b7b; */
    padding-block: 2rem;
    width: min(95%, 70rem);
    margin-inline: auto;
}

.modal-details {
    display: grid;
    gap: 1rem;
    grid-template-columns: 100%;
    /* padding-block: 2em; */
    width: min(95%, 70rem);
    margin-inline: auto;
    padding: 1em 1em;
}


.modal-details-data {
    margin: 0;
    color: #efefef;
    margin-inline: auto;
}

.modal-details-icon {
    width: 55px;
    /* justify-items: center; */
    margin-inline: auto;
    /* margin-top: .5em; */
    /* padding: 1em;  */
    padding-top: 1em;
    transform: scale(1);
    transition: transform 250ms;
}

.modal-details-icon:hover,
.modal-details-icon:focus {
    transform: scale(1.1);
}

.modal-details-description {
    margin: 0;
    color: bisque;
    margin-inline: auto;
    /* padding: 2em 0em; */
    text-indent: 1.25rem;
}

.modal-footer {
    padding: 15px 0;
    color: white;
}

.modal-footer .modal-close {
    padding: 8px 16px;
    font-size: 14px;
    border: none;
    outline: none;
    border-radius: 4px;
    color: darkred;
}

.modal img {
    object-fit: cover;
    user-select: none;
    max-width: 100%;
    min-width: 100%;
}

@keyframes modal-open {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}


/* .btn {
    display: inline-block;
    cursor: pointer;
    font: inherit;
    font-weight: 700;
    color: var(--clr-primary-500);
    text-decoration: none;
    background: white;
    padding: 0.75em 2.5em;
  
    border: 4px solid transparent;
    outline: 3px solid currentColor;
    outline-offset: -6px;
  
    transition: 500ms;
  }
  
  .btn:hover,
  .btn:focus {
    color: white;
    outline-offset: 0px;
    background: var(--clr-primary-400);
    border-color: var(--clr-primary-300);
    box-shadow: inset 0 0 0 5px var(--clr-primary-400),
      inset 0 0 0 10px var(--clr-primary-500);
  } */

@media (min-width: 680px) {

    .portfolio {
        display: grid;
        grid-template-columns: 49% 49%;
        grid-gap: 1em;
        grid-template-areas: "small small" "small small";
    }
    
    #banner {
        background-image: url('/images/banner3.jpg');
        display: block;        
        background-repeat: no-repeat;
        background-size: cover;
        text-align: center;
        justify-content: center;
        max-width: 100%;
        padding: 40px 0;
        margin-bottom: 1em;
        border-bottom: 1px solid rgba(0, 0, 0, .2);
    }
    .banner-logo {
        font-size: 1.2rem;
        color: rgb(250, 232, 213);
        /* font-weight: 500; */
        font-family: system-ui;
    }

    .copy {
        font-size: .8em;
        color: rgb(42, 41, 41);
        font-weight: 500;
        font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    }

    
    /* .modal-gallery {
        display: grid;
        gap: .5rem;
        grid-template-columns: repeat(2, 1fr);
        
        padding-block: 2rem;
        width: min(95%, 70rem);
        margin-inline: auto;
    } */


    .modal-details {
        display: grid;
        gap: 2rem;
        grid-template-columns:
            repeat(6, 1fr);
        /* padding-block: 1em; */
        width: min(95%, 70rem);
        margin-inline: auto;
        /* padding: 1em 1em;     */
    }

    .modal-details-data {
        grid-column: span 3;
    }

    /* .modal-details-icon {
       
        margin-top: 2.5em;
    } */

    .modal-details-description {
        grid-column: span 3;

    }
}

@media (min-width:1280px) {
    .portfolio {
        display: grid;
        grid-template-columns: 32% 32% 32%;
        grid-gap: 1em;
        grid-template-areas: "small small small" "small small small" "large";
    }

    .container {
        /* width: 90%; */
        max-width: 1280px;
        /* margin: 0 auto; */
    }

    #banner {
        border: 0;
        background-image: url('/images/banner3.jpg ');
        display: block;               
        background-repeat: no-repeat;
        background-size: cover;
        text-align: center;
        justify-content: center;
        max-width: 100%;
        padding: 52px 0;
        margin-bottom: 1em;
        border-bottom: 1px solid rgba(0, 0, 0, .2);
    }
    .banner-logo {
        font-size: 1.9rem;
        color: rgb(250, 232, 213);
        /* font-weight: 500; */
        font-family:  system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    }
    .copy {
        font-size: .9em;
        color: rgb(42, 41, 41);
        font-weight: 500;
        font-family:  system-ui;
    }

    
    /* .modal-gallery {
        display: grid;
        gap: .5rem;
        grid-template-columns: repeat(3, 1fr);
        
        padding-block: 2rem;
        width: min(95%, 70rem);
        margin-inline: auto;
    } */

    .modal-details {
        margin: 0;
        display: grid;
        gap: 2rem;
        grid-template-columns: repeat(9, 1fr);
        padding-block: 1em;
        width: min(95%, 70rem);
        /* justify-content: space-between;        ; */
        padding: 1em 1em;
    }

    .modal-details-data {
        grid-column: span 4;
    }

    /* .modal-details-icon {
        grid-column: span 2;
        margin-top: 2.5em;
    } */

    .modal-details-description {
        grid-column: span 5;

    }

}