| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178 |
- @use '../_variables';
- main{
- max-width: 80em;
- margin: auto;
- }
- div#details{
- min-height: 24em;
- margin: auto 4em 0 4em;
-
- h2{
- font-size: 300%;
- border-bottom: 0.2em solid;
- margin-left: 2em;
-
- @media only screen and (max-width : 800px){
- margin-left: initial;
- margin-bottom: 0.5em;
- border-bottom: 0.05em solid;
- text-align: center;
- }
- }
-
- p{margin: auto 0.2em;}
- @media only screen and (max-width : 600px) {margin: auto 1em;}
- }
- div#images{text-align: center;}
- img.img, video.img{
- vertical-align: middle;
- max-width: 12em;
- max-height: 14em;
- border: 0.1em solid variables.$primary-brown;
- border-radius: 0.3em;
- margin: 0.5em;
- cursor: pointer;
- position: relative;
- display: inline-block;
- }
- img.video_play{
- width: 3em;
- height: 3em;
- margin: 0 4.5em 0 -8em;
- z-index: 1;
- position: relative;
- }
- video.img::-webkit-media-controls{display: none;}
- img.img_main{
- max-width: 26em;
- max-height: 21em;
- float: left;
- margin: 0.5em 3em 0.5em 0.5em;
- @media only screen and (max-width : 800px){
- max-width: 100%;
- max-height: 24em;
- float: none;
- margin: 0.5em auto;
- display: block;
- }
- }
- div#gallery-cover{
- display: none;
- position: fixed;
- top: 0;
- left: 0;
- right: 0;
- bottom: 0;
- background-color: variables.$darker-brown;
- opacity: 0.4;
- transition: opacity 1s ease-in-out;
- z-index: 2;
- }
- div#gallery{
- display: none;
- position: fixed;
- top: 5%;
- left: 10%;
- right: 10%;
- bottom: 5%;
- background-color: variables.$background-off-white;
- border: 0.2em solid variables.$primary-brown;
- border-radius: 0.4em;
- transition: opacity 1s ease-in-out;
- text-align: center;
- z-index: 3;
-
- @media only screen and (max-width : 800px) {
- top: 4%;
- bottom: 2%;
- left: 2%;
- right: 2%;
- }
- h3{
- text-align: left;
- font-size: 140%;
- margin: 0.6em;
- border-bottom: 0.05em solid variables.$primary-brown;
- input[type='button']{
- float: right;
- padding: 0.3em 0.6em;
- margin: -0.3em;
- }
- }
-
- div#gallery-flex{
- display: flex;
- max-height: calc(100% - 8em);
-
- @media only screen and (max-width : 800px) {display: block;}
-
- div#gallery-flex-img-container{
- flex: 70%;
- padding: 1em;
- text-align: center;
-
- @media only screen and (max-width : 800px) {max-height: 60%;}
-
- img#gallery-img, video#gallery-video{
-
- border: 0.1em solid variables.$primary-brown;
- border-radius: 0.3em;
- max-width: 95%;
- max-height: 100%;
- margin: auto;
-
- @media only screen and (max-width : 800px) {
- display: block;
- max-height: calc(60% - 2em);
- max-width: 95%;
- margin: 0.2em auto;
- }
- }
- }
-
- p#gallery-text{
- flex: 25%;
- margin: 2%;
- background-color: #ddd;
- padding: 0.7em;
- text-align: left;
- border: 0.1em solid variables.$primary-brown;
- border-radius: 0.3em;
- overflow-y: scroll;
-
- @media only screen and (max-width : 800px) {
- display: block;
- margin: auto 2em;
- }
- }
- }
- div#gallery-controls{
- text-align: center;
- margin: 0;
-
- @media only screen and (max-width : 800px) {
- position: absolute;
- bottom: 0;
- width: 100%;
- }
-
- input[type='button']{
- display: inline-block;
- padding: 1em 1.5em;
- margin: 0.3em 1em;
- }
- }
- }
|